shell32: Simplify check for an empty string.
This commit is contained in:
parent
aba6a68068
commit
9491044e44
|
@ -897,7 +897,7 @@ static HRESULT WINAPI ApplicationAssociationRegistration_QueryCurrentDefault(IAp
|
||||||
|
|
||||||
*association = NULL;
|
*association = NULL;
|
||||||
|
|
||||||
if((type == AT_URLPROTOCOL || type == AT_FILEEXTENSION) && !lstrlenW(query))
|
if((type == AT_URLPROTOCOL || type == AT_FILEEXTENSION) && !query[0])
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
else if(type == AT_FILEEXTENSION && query[0] != '.')
|
else if(type == AT_FILEEXTENSION && query[0] != '.')
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
Loading…
Reference in New Issue