Commit 148f6421 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

Change a fixme to a warn, and use W version of call.

parent f4f7689c
......@@ -86,14 +86,14 @@ static WCHAR wszFakeDocumentText[1024];
*/
BOOL PRINTDLG_OpenDefaultPrinter(HANDLE *hprn)
{
char buf[260];
DWORD dwBufLen = sizeof(buf);
WCHAR buf[260];
DWORD dwBufLen = sizeof(buf) / sizeof(buf[0]);
BOOL res;
if(!GetDefaultPrinterA(buf, &dwBufLen))
if(!GetDefaultPrinterW(buf, &dwBufLen))
return FALSE;
res = OpenPrinterA(buf, hprn, NULL);
res = OpenPrinterW(buf, hprn, NULL);
if (!res)
FIXME("Could not open printer %s?!\n",buf);
WARN("Could not open printer %s\n", debugstr_w(buf));
return res;
}
......
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