From 9009e93d39ea8f24cf9a8781e4d6b101078d3cdf Mon Sep 17 00:00:00 2001 From: Mikolaj Zalewski Date: Mon, 15 Oct 2007 18:42:42 -0700 Subject: [PATCH] comdlg32: NULL name in PRINTDLG_SetUpPrinterListComboA is correct so don't print a FIXME --- dlls/comdlg32/printdlg.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c index 8e334c3..490a794 100644 --- a/dlls/comdlg32/printdlg.c +++ b/dlls/comdlg32/printdlg.c @@ -133,8 +133,9 @@ INT PRINTDLG_SetUpPrinterListComboA(HWND char buf[260]; DWORD dwBufLen = sizeof(buf); - FIXME("Can't find '%s' in printer list so trying to find default\n", - name); + if (name != NULL) + WARN("Can't find %s in printer list so trying to find default\n", + debugstr_a(name)); if(!GetDefaultPrinterA(buf, &dwBufLen)) return num; i = SendDlgItemMessageA(hDlg, id, CB_FINDSTRINGEXACT, -1, (LPARAM)buf); @@ -165,8 +166,9 @@ static INT PRINTDLG_SetUpPrinterListComb (LPARAM)name)) == CB_ERR) { WCHAR buf[260]; DWORD dwBufLen = sizeof(buf)/sizeof(buf[0]); - TRACE("Can't find '%s' in printer list so trying to find default\n", - debugstr_w(name)); + if (name != NULL) + WARN("Can't find %s in printer list so trying to find default\n", + debugstr_w(name)); if(!GetDefaultPrinterW(buf, &dwBufLen)) return num; i = SendDlgItemMessageW(hDlg, id, CB_FINDSTRINGEXACT, -1, (LPARAM)buf); -- 1.4.1