Re: [02/13] kernel32: Avoid checking the output parameter for GetNumberOfConsoleInputEvents.
3 Jan
2011
3 Jan
'11
2:12 p.m.
Andrew Nguyen <anguyen(a)codeweavers.com> writes:
@@ -991,9 +991,7 @@ BOOL WINAPI GetNumberOfConsoleInputEvents( HANDLE handle, LPDWORD nrofevents ) req->handle = console_handle_unmap(handle); req->flush = FALSE; if ((ret = !wine_server_call_err( req ))) - { - if (nrofevents) *nrofevents = reply->read; - } + *nrofevents = reply->read;
That sort of change is in general not a good idea. Most of these functions have an exception handler on Windows so NULL pointers get caught. Even if the handler has been removed in Win7, that doesn't mean there aren't apps that depend on it. -- Alexandre Julliard julliard(a)winehq.org
5458
Age (days ago)
5458
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard