kernel32: check parameter of CheckRemoteDebuggerPresent with tests
Alexandre Julliard
julliard at winehq.org
Sat Sep 26 09:02:01 CDT 2009
Stefan Leichter <Stefan.Leichter at 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 at winehq.org
More information about the wine-devel
mailing list