Commit 504cfe51 authored by Alex Priem's avatar Alex Priem Committed by Alexandre Julliard

InfoPtr checking mixed up WM_DESTROY and WM_CREATE.

parent e1fd1cce
...@@ -3673,8 +3673,8 @@ TREEVIEW_SetScrollTime (HWND hwnd, UINT uScrollTime) ...@@ -3673,8 +3673,8 @@ TREEVIEW_SetScrollTime (HWND hwnd, UINT uScrollTime)
static LRESULT WINAPI static LRESULT WINAPI
TREEVIEW_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) TREEVIEW_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
if (uMsg==WM_DESTROY) if (uMsg==WM_CREATE)
return TREEVIEW_Destroy (hwnd); return TREEVIEW_Create (hwnd, wParam, lParam);
if (!TREEVIEW_GetInfoPtr(hwnd)) if (!TREEVIEW_GetInfoPtr(hwnd))
return DefWindowProcA (hwnd, uMsg, wParam, lParam); return DefWindowProcA (hwnd, uMsg, wParam, lParam);
...@@ -3831,8 +3831,8 @@ TREEVIEW_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) ...@@ -3831,8 +3831,8 @@ TREEVIEW_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_COMMAND: case WM_COMMAND:
return TREEVIEW_Command (hwnd, wParam, lParam); return TREEVIEW_Command (hwnd, wParam, lParam);
case WM_CREATE: case WM_DESTROY:
return TREEVIEW_Create (hwnd, wParam, lParam); return TREEVIEW_Destroy (hwnd);
/* case WM_ENABLE: */ /* case WM_ENABLE: */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment