winemapi: Simplify check for an empty string (PVS-Studio).
Michael Stefaniuc
mstefani at redhat.de
Tue Nov 18 03:23:53 CST 2014
---
dlls/winemapi/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winemapi/main.c b/dlls/winemapi/main.c
index 8cd6b6d..b627d49 100644
--- a/dlls/winemapi/main.c
+++ b/dlls/winemapi/main.c
@@ -100,7 +100,7 @@ ULONG WINAPI MAPIResolveName(LHANDLE session, ULONG_PTR uiparam, LPSTR name,
TRACE("(0x%08lx 0x%08lx %s 0x%08x 0x%08x %p)\n", session, uiparam,
debugstr_a(name), flags, reserved, recip);
- if (!name || !strlen(name))
+ if (!name || !name[0])
return MAPI_E_FAILURE;
scode = MAPIAllocateBuffer(sizeof(**recip) + sizeof(smtp) + strlen(name),
--
1.9.3
More information about the wine-patches
mailing list