Commit e016d2ec authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Remove the DIB section hack in WriteFile now that NtWriteFile takes care of it.

parent d2b217e9
......@@ -560,16 +560,6 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
status = NtWriteFile(hFile, hEvent, NULL, cvalue, piosb,
buffer, bytesToWrite, poffset, NULL);
/* FIXME: NtWriteFile does not always cause page faults, generate them now */
if (status == STATUS_INVALID_USER_BUFFER && !IsBadReadPtr( buffer, bytesToWrite ))
{
status = NtWriteFile(hFile, hEvent, NULL, cvalue, piosb,
buffer, bytesToWrite, poffset, NULL);
if (status != STATUS_INVALID_USER_BUFFER)
FIXME("Could not access memory (%p,%d) at first, now OK. Protected by DIBSection code?\n",
buffer, bytesToWrite);
}
if (status == STATUS_PENDING && !overlapped)
{
WaitForSingleObject( hFile, INFINITE );
......
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