Skip to content
Snippets Groups Projects
Commit 96ebfa98 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Cosmetic fixes.

parent b4be9981
No related merge requests found
...@@ -1785,7 +1785,8 @@ static LONG WIN_GetWindowLong( HWND hwnd, INT offset, WINDOWPROCTYPE type ) ...@@ -1785,7 +1785,8 @@ static LONG WIN_GetWindowLong( HWND hwnd, INT offset, WINDOWPROCTYPE type )
{ {
if (offset >= 0) if (offset >= 0)
{ {
FIXME( "(%d) not supported on other process window %x\n", offset, hwnd ); if (IsWindow(hwnd))
FIXME( "(%d) not supported on other process window %x\n", offset, hwnd );
SetLastError( ERROR_INVALID_WINDOW_HANDLE ); SetLastError( ERROR_INVALID_WINDOW_HANDLE );
return 0; return 0;
} }
...@@ -2708,7 +2709,7 @@ HWND *WIN_ListParents( HWND hwnd ) ...@@ -2708,7 +2709,7 @@ HWND *WIN_ListParents( HWND hwnd )
{ {
WND *win; WND *win;
HWND current, *list; HWND current, *list;
int pos = 0, size = 16, count; int pos = 0, size = 16, count = 0;
if (!(list = HeapAlloc( GetProcessHeap(), 0, size * sizeof(HWND) ))) return NULL; if (!(list = HeapAlloc( GetProcessHeap(), 0, size * sizeof(HWND) ))) return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment