From: Austin English Subject: [PATCH 2/2] explorer: use winediag for some error messages Message-Id: Date: Sun, 15 Nov 2015 23:04:35 -0600 -- -Austin From 2fb0488294ade1dad8ef4eb3babcf8bd4262a3b4 Mon Sep 17 00:00:00 2001 From: Austin English Date: Sun, 15 Nov 2015 23:02:36 -0600 Subject: [PATCH 2/2] explorer: use winediag for some error messages Signed-off-by: Austin English --- programs/explorer/desktop.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c index 2b8502b..8bbc4980 100644 --- a/programs/explorer/desktop.c +++ b/programs/explorer/desktop.c @@ -36,6 +36,7 @@ #include "explorer_private.h" WINE_DEFAULT_DEBUG_CHANNEL(explorer); +WINE_DECLARE_DEBUG_CHANNEL(winediag); #define DESKTOP_CLASS_ATOM ((LPCWSTR)MAKEINTATOM(32769)) #define DESKTOP_ALL_ACCESS 0x01ff @@ -820,13 +821,13 @@ static HMODULE load_graphics_driver( const WCHAR *driver, const GUID *guid ) switch (GetLastError()) { case ERROR_MOD_NOT_FOUND: - strcpy( error, "The graphics driver is missing. Check your build!" ); + ERR_(winediag)( error, "The graphics driver is missing. Check your build!" ); break; case ERROR_DLL_INIT_FAILED: - strcpy( error, "Make sure that your X server is running and that $DISPLAY is set correctly." ); + ERR_(winediag)( error, "Make sure that your X server is running and that $DISPLAY is set correctly." ); break; default: - sprintf( error, "Unknown error (%u).", GetLastError() ); + ERR_(winediag)( error, "Unknown error (%u).", GetLastError() ); break; } name = next; -- 2.6.2