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

oldstable
Alexandre Julliard 2009-01-14 20:20:14 +01:00
parent d2b217e90a
commit e016d2ec5e
1 changed files with 0 additions and 10 deletions

View File

@ -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 );