diff --git a/programs/oleview/pane.c b/programs/oleview/pane.c index 20c2fd63310..6418cf70087 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;