Author: gschneider
Date: Thu Dec 3 22:50:52 2009
New Revision: 44394
URL:
http://svn.reactos.org/svn/reactos?rev=44394&view=rev
Log:
[kernel32]
- OpenFile: set the structure size after doing basic parameter checks
- Fixes two kernel32 file tests
Modified:
trunk/reactos/dll/win32/kernel32/file/file.c
Modified: trunk/reactos/dll/win32/kernel32/file/file.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/fi…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/file.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/file.c [iso-8859-1] Thu Dec 3 22:50:52 2009
@@ -239,7 +239,6 @@
return HFILE_ERROR;
}
- lpReOpenBuff->cBytes = sizeof(OFSTRUCT);
lpReOpenBuff->nErrCode = 0;
if (uStyle & OF_REOPEN) lpFileName = lpReOpenBuff->szPathName;
@@ -282,10 +281,11 @@
return -1;
default:
+ lpReOpenBuff->cBytes = sizeof(OFSTRUCT);
return 1;
}
}
-
+ lpReOpenBuff->cBytes = sizeof(OFSTRUCT);
if ((uStyle & OF_CREATE) == OF_CREATE)
{
DWORD Sharing;