mirror of
https://github.com/reactos/wine.git
synced 2025-03-03 02:05:48 +00:00
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;
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user