Commit 766315e1 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

Fix CopyMetaFileA to work with NULL filename.

parent 6a6c85c6
......@@ -486,10 +486,9 @@ HMETAFILE WINAPI CopyMetaFileA( HMETAFILE hSrcMetaFile,
if (lpFilename) RtlCreateUnicodeStringFromAsciiz(&lpFilenameW, lpFilename);
else lpFilenameW.Buffer = NULL;
if (lpFilenameW.Buffer) {
ret = CopyMetaFileW( hSrcMetaFile, lpFilenameW.Buffer );
}
RtlFreeUnicodeString(&lpFilenameW);
ret = CopyMetaFileW( hSrcMetaFile, lpFilenameW.Buffer );
if (lpFilenameW.Buffer)
RtlFreeUnicodeString(&lpFilenameW);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment