comctl32/tests: Fix printing a NULL string

André Hentschel nerv at dawncrow.de
Mon Aug 29 14:10:31 CDT 2011


Should stop the crash on Solaris and maybe others
---
 dlls/comctl32/tests/listview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 765992e..344df1d 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -372,7 +372,7 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP
               /* always accept new item text */
               NMLVDISPINFO *di = (NMLVDISPINFO*)lParam;
               g_editbox_disp_info = *di;
-              trace("LVN_ENDLABELEDIT: text=%s\n", di->item.pszText);
+              trace("LVN_ENDLABELEDIT: text=%s\n", di->item.pszText ? di->item.pszText : "(null)");
 
               /* edit control still available from this notification */
               edit = (HWND)SendMessageA(((NMHDR*)lParam)->hwndFrom, LVM_GETEDITCONTROL, 0, 0);
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list