From 8296075fa7f08dc8f2dfa5827ca3119e6a5e42e7 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sun, 24 May 2009 22:45:57 +0400 Subject: [PATCH] comctl32/toolbar: Don't free Toolbar control data too early. --- dlls/comctl32/toolbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index 06bf2399fc6..5a0344fc4ff 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -5322,8 +5322,8 @@ TOOLBAR_Destroy (TOOLBAR_INFO *infoPtr) CloseThemeData (GetWindowTheme (infoPtr->hwndSelf)); /* free toolbar info data */ - Free (infoPtr); SetWindowLongPtrW (infoPtr->hwndSelf, 0, 0); + Free (infoPtr); return 0; }