advapi32: SetLastError in ReadEventLog{A, W} stub to avoid applications from looping forever.

This commit is contained in:
Louis Lenders 2011-07-19 01:21:55 +02:00 committed by Alexandre Julliard
parent 5f484df06c
commit 33e2034227
1 changed files with 4 additions and 0 deletions

View File

@ -571,6 +571,8 @@ BOOL WINAPI ReadEventLogA( HANDLE hEventLog, DWORD dwReadFlags, DWORD dwRecordOf
{
FIXME("(%p,0x%08x,0x%08x,%p,0x%08x,%p,%p) stub\n", hEventLog, dwReadFlags,
dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
@ -584,6 +586,8 @@ BOOL WINAPI ReadEventLogW( HANDLE hEventLog, DWORD dwReadFlags, DWORD dwRecordOf
{
FIXME("(%p,0x%08x,0x%08x,%p,0x%08x,%p,%p) stub\n", hEventLog, dwReadFlags,
dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}