winemapi: Simplify check for an empty string (PVS-Studio).
This commit is contained in:
parent
b4b58a82e3
commit
2beb5518c5
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue