winemapi: Simplify check for an empty string (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2014-11-18 10:23:53 +01:00 committed by Alexandre Julliard
parent b4b58a82e3
commit 2beb5518c5
1 changed files with 1 additions and 1 deletions

View File

@ -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, TRACE("(0x%08lx 0x%08lx %s 0x%08x 0x%08x %p)\n", session, uiparam,
debugstr_a(name), flags, reserved, recip); debugstr_a(name), flags, reserved, recip);
if (!name || !strlen(name)) if (!name || !name[0])
return MAPI_E_FAILURE; return MAPI_E_FAILURE;
scode = MAPIAllocateBuffer(sizeof(**recip) + sizeof(smtp) + strlen(name), scode = MAPIAllocateBuffer(sizeof(**recip) + sizeof(smtp) + strlen(name),