oleview: Fixed bad error check.
This commit is contained in:
parent
063ddfeead
commit
5006da3bb7
|
@ -151,7 +151,7 @@ BOOL CreatePanedWindow(HWND hWnd, HWND *hWndCreated, HINSTANCE hInst)
|
||||||
pane = HeapAlloc(GetProcessHeap(), 0, sizeof(PANE));
|
pane = HeapAlloc(GetProcessHeap(), 0, sizeof(PANE));
|
||||||
*hWndCreated = CreateWindow(wszPaneClass, NULL, WS_CHILD|WS_VISIBLE,
|
*hWndCreated = CreateWindow(wszPaneClass, NULL, WS_CHILD|WS_VISIBLE,
|
||||||
CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, hWnd, (HMENU)pane, hInst, NULL);
|
CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, hWnd, (HMENU)pane, hInst, NULL);
|
||||||
if(!hWndCreated)
|
if(!*hWndCreated)
|
||||||
{
|
{
|
||||||
HeapFree(GetProcessHeap(), 0, pane);
|
HeapFree(GetProcessHeap(), 0, pane);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue