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

This commit is contained in:
Juan Lang 2005-03-14 10:07:11 +00:00 committed by Alexandre Julliard
parent f4f7689c2e
commit 148f6421ed
1 changed files with 5 additions and 5 deletions

View File

@ -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;
}