Commit 9491044e authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

shell32: Simplify check for an empty string.

parent aba6a680
......@@ -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;
......
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