Change a fixme to a warn, and use W version of call.
This commit is contained in:
parent
f4f7689c2e
commit
148f6421ed
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue