Author: gschneider
Date: Mon Aug 24 01:40:48 2009
New Revision: 42897
URL:
http://svn.reactos.org/svn/reactos?rev=42897&view=rev
Log:
CreateMetaFileW: WriteFile returns the number of bytes written for synchronous operations
Modified:
trunk/reactos/dll/win32/gdi32/objects/metafile.c
Modified: trunk/reactos/dll/win32/gdi32/objects/metafile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/me…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/metafile.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/metafile.c [iso-8859-1] Mon Aug 24 01:40:48
2009
@@ -143,6 +143,7 @@
{
HANDLE hFile;
HDC hmDC;
+ DWORD dwWritten;
PMETAFILEDC pmfDC = LocalAlloc(LMEM_ZEROINIT, sizeof(METAFILEDC));
if (!pmfDC) return NULL;
@@ -172,7 +173,7 @@
return NULL;
}
- if (!WriteFile( hFile, &pmfDC->mh, sizeof(pmfDC->mh), NULL, NULL ))
+ if (!WriteFile( hFile, &pmfDC->mh, sizeof(pmfDC->mh), &dwWritten, NULL
))
{
// MFDRV_DeleteDC( dc->physDev );
LocalFree(pmfDC);