shell32: Native RegisterClassEx requires cbSize to be set.
authorDylan Smith <dylan.ah.smith@gmail.com>
Fri, 18 Jun 2010 21:42:44 +0000 (17:42 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 21 Jun 2010 09:46:52 +0000 (11:46 +0200)
dlls/shell32/control.c

index aabe89ef45a035885dc2766cb0f7f384a700a604..3346ddc878e149c443a84ab50425f5ec7ba4b4ad 100644 (file)
@@ -622,6 +622,7 @@ static void    Control_DoInterface(CPanel* panel, HWND hWnd, HINSTANCE hInst)
 
     LoadStringW(shell32_hInstance, IDS_CPANEL_TITLE, appName, sizeof(appName) / sizeof(appName[0]));
 
+    wc.cbSize = sizeof(wc);
     wc.style = CS_HREDRAW|CS_VREDRAW;
     wc.lpfnWndProc = Control_WndProc;
     wc.cbClsExtra = 0;