shell32: Simplify check for an empty string.

This commit is contained in:
Sebastian Lackner 2015-02-26 06:32:13 +01:00 committed by Alexandre Julliard
parent aba6a68068
commit 9491044e44
1 changed files with 1 additions and 1 deletions

View File

@ -897,7 +897,7 @@ static HRESULT WINAPI ApplicationAssociationRegistration_QueryCurrentDefault(IAp
*association = NULL;
if((type == AT_URLPROTOCOL || type == AT_FILEEXTENSION) && !lstrlenW(query))
if((type == AT_URLPROTOCOL || type == AT_FILEEXTENSION) && !query[0])
return E_INVALIDARG;
else if(type == AT_FILEEXTENSION && query[0] != '.')
return E_INVALIDARG;