Author: aandrejevic
Date: Fri Aug 7 23:48:54 2015
New Revision: 68620
URL:
http://svn.reactos.org/svn/reactos?rev=68620&view=rev
Log:
[FASTFAT]
VfatWrite (but not VfatRead) is supposed to return STATUS_INVALID_USER_BUFFER
if an error occurred while locking the buffer.
[KERNEL32]
Reading 0 bytes using ReadFile doesn't always succeed on Windows.
Modified:
trunk/reactos/dll/win32/kernel32/client/file/rw.c
trunk/reactos/drivers/filesystems/fastfat/rw.c
Modified: trunk/reactos/dll/win32/kernel32/client/file/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/rw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/rw.c [iso-8859-1] Fri Aug 7 23:48:54
2015
@@ -131,7 +131,6 @@
TRACE("ReadFile(hFile %p)\n", hFile);
if (lpNumberOfBytesRead != NULL) *lpNumberOfBytesRead = 0;
- if (!nNumberOfBytesToRead) return TRUE;
hFile = TranslateStdHandle(hFile);
Modified: trunk/reactos/drivers/filesystems/fastfat/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/rw.c [iso-8859-1] Fri Aug 7 23:48:54 2015
@@ -924,6 +924,7 @@
Status = VfatLockUserBuffer(IrpContext->Irp, Length, IoReadAccess);
if (!NT_SUCCESS(Status))
{
+ Status = STATUS_INVALID_USER_BUFFER;
goto ByeBye;
}