[PATCH] oleview: fixed bad error check

Marcus Meissner marcus at jet.franken.de
Fri Sep 4 15:42:47 CDT 2009


---
 programs/oleview/pane.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/oleview/pane.c b/programs/oleview/pane.c
index 20c2fd6..6418cf7 100644
--- a/programs/oleview/pane.c
+++ b/programs/oleview/pane.c
@@ -151,7 +151,7 @@ BOOL CreatePanedWindow(HWND hWnd, HWND *hWndCreated, HINSTANCE hInst)
     pane = HeapAlloc(GetProcessHeap(), 0, sizeof(PANE));
     *hWndCreated = CreateWindow(wszPaneClass, NULL, WS_CHILD|WS_VISIBLE,
             CW_USEDEFAULT, CW_USEDEFAULT, 0, 0,    hWnd, (HMENU)pane, hInst, NULL);
-    if(!hWndCreated)
+    if(!*hWndCreated)
     {
         HeapFree(GetProcessHeap(), 0, pane);
         return FALSE;
-- 
1.5.6



More information about the wine-patches mailing list