Re: kernel32: check parameter of CheckRemoteDebuggerPresent with tests
26 Sep
2009
26 Sep
'09
2:02 p.m.
Stefan Leichter <Stefan.Leichter(a)camline.com> writes:
+ SetLastError(0xdeadbeef); + bret = pCheckRemoteDebuggerPresent(INVALID_HANDLE_VALUE,NULL); + ok(!bret , "expected CheckRemoteDebuggerPresent to fail\n"); + ok(ERROR_INVALID_PARAMETER == GetLastError(), + "expected error ERROR_INVALID_PARAMETER, got %d/%x\n",GetLastError(), GetLastError());
It doesn't make sense to pass INVALID_HANDLE_VALUE as a process handle, it's only for files. You probably want GetCurrentProcess(). -- Alexandre Julliard julliard(a)winehq.org
5923
Age (days ago)
5923
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard