Commit 1e0bc841 authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard

FIND_WndPtr should not set ERROR_INVALID_WINDOW_HANDLE when hWnd=0.

parent 9ffd7938
......@@ -145,7 +145,8 @@ WND * WIN_FindWndPtr( HWND hwnd )
ptr->irefCount--;
*/
error2:
SetLastError( ERROR_INVALID_WINDOW_HANDLE );
if ( hwnd!=0 )
SetLastError( ERROR_INVALID_WINDOW_HANDLE );
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment