[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    [PATCH 1/4] localspl: Remove useless NULL checks from AddMonitor trace.
From:       Dmitry Timoshkov <dmitry () baikal ! ru>
Date:       2019-08-30 8:06:19
Message-ID: 20190830160619.096ba5765817391fb9466cd6 () baikal ! ru
[Download RAW message or body]

AddMonitor dereferences pMonitors later without any checks.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
---
 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 cb31b194ae..ccd19811cf 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));
-- 
2.20.1




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic