Module: wine Branch: master Commit: c113c5b9e7f52d8568e7e474ae2a70b054ff90d1 URL: https://source.winehq.org/git/wine.git/?a=commit;h=c113c5b9e7f52d8568e7e474a...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Thu Sep 5 20:31:06 2019 +0800
localspl: Remove useless NULL checks from AddMonitor trace.
AddMonitor dereferences pMonitors later without any checks.
Signed-off-by: Dmitry Timoshkov dmitry@baikal.ru Signed-off-by: Huw Davies huw@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/localspl/provider.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/localspl/provider.c b/dlls/localspl/provider.c index cb31b19..ccd1981 100644 --- a/dlls/localspl/provider.c +++ b/dlls/localspl/provider.c @@ -1475,9 +1475,7 @@ static BOOL WINAPI fpAddMonitor(LPWSTR pName, DWORD Level, LPBYTE pMonitors)
mi2w = (LPMONITOR_INFO_2W) pMonitors; TRACE("(%s, %d, %p): %s %s %s\n", debugstr_w(pName), Level, pMonitors, - debugstr_w(mi2w ? mi2w->pName : NULL), - debugstr_w(mi2w ? mi2w->pEnvironment : NULL), - debugstr_w(mi2w ? mi2w->pDLLName : NULL)); + debugstr_w(mi2w->pName), debugstr_w(mi2w->pEnvironment), debugstr_w(mi2w->pDLLName));
if (copy_servername_from_name(pName, NULL)) { FIXME("server %s not supported\n", debugstr_w(pName));