Commit 69ac76d0 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Handle CreateMetaFileW(NULL) correctly.

parent f7f7bd0c
......@@ -263,6 +263,8 @@ HDC WINAPI CreateMetaFileW(LPCWSTR filename)
DWORD len;
HDC hReturnDC;
if (!filename) return CreateMetaFileA(NULL);
len = WideCharToMultiByte( CP_ACP, 0, filename, -1, NULL, 0, NULL, NULL );
filenameA = HeapAlloc( GetProcessHeap(), 0, len );
WideCharToMultiByte( CP_ACP, 0, filename, -1, filenameA, len, NULL, NULL );
......
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