kernel32: Remove the DIB section hack in WriteFile now that NtWriteFile takes care of it.
This commit is contained in:
parent
d2b217e90a
commit
e016d2ec5e
|
@ -560,16 +560,6 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
|
||||||
status = NtWriteFile(hFile, hEvent, NULL, cvalue, piosb,
|
status = NtWriteFile(hFile, hEvent, NULL, cvalue, piosb,
|
||||||
buffer, bytesToWrite, poffset, NULL);
|
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)
|
if (status == STATUS_PENDING && !overlapped)
|
||||||
{
|
{
|
||||||
WaitForSingleObject( hFile, INFINITE );
|
WaitForSingleObject( hFile, INFINITE );
|
||||||
|
|
Loading…
Reference in New Issue