wined3d: Don't unregister a window unless the window proc is what we expect it to be.
commit7a354177b38c9451c938389576890a14d5c543fa
authorHenri Verbeet <hverbeet@codeweavers.com>
Wed, 10 Nov 2010 09:53:04 +0000 (10 10:53 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 10 Nov 2010 11:19:24 +0000 (10 12:19 +0100)
treeae93763bd65574891f9ff2e6a15f535018f6f300
parent9a1fddb0fd8f0d5c2c8601a9eadfe7737598c007
wined3d: Don't unregister a window unless the window proc is what we expect it to be.

In particular, if we'd unregister a window when the application replaced our
window proc, but still forwards to us, we'd create a loop when we register
the same window again later.
dlls/ddraw/tests/d3d.c
dlls/wined3d/wined3d_main.c