From 96ebfa983b76bb8d1035918c537622820db584c2 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 23 Oct 2001 20:35:44 +0000 Subject: [PATCH] Cosmetic fixes. --- windows/win.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/windows/win.c b/windows/win.c index 40db2bc68ae..79bc061fd18 100644 --- a/windows/win.c +++ b/windows/win.c @@ -1785,7 +1785,8 @@ static LONG WIN_GetWindowLong( HWND hwnd, INT offset, WINDOWPROCTYPE type ) { 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 ); return 0; } @@ -2708,7 +2709,7 @@ HWND *WIN_ListParents( HWND hwnd ) { WND *win; 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; -- 2.11.4.GIT