Author: rharabien
Date: Mon Mar 21 14:21:16 2011
New Revision: 51105
URL: http://svn.reactos.org/svn/reactos?rev=51105&view=rev
Log:
Don't assume WM_DESTROY is last message - listview sends notification after it. Confirmed in Windows 7.
See issue #6026 for more details.
Modified:
trunk/reactos/dll/win32/devmgr/hwpage.c
Modified: trunk/reactos/dll/win32/devmgr/hwpage.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/hwpage.c?…
==============================================================================
--- trunk/reactos/dll/win32/devmgr/hwpage.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/devmgr/hwpage.c [iso-8859-1] Mon Mar 21 14:21:16 2011
@@ -964,6 +964,9 @@
case WM_DESTROY:
{
+ /* zero hpd pointer in window data, because it can be used later (WM_DESTROY has not to be last message) */
+ SetWindowLongPtr(hwndDlg, DWL_USER, (DWORD_PTR)NULL);
+
/* free devices list */
FreeDevicesList(hpd);