Commit 2beb5518 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent b4b58a82
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment