diff --git a/dlls/shell32/assoc.c b/dlls/shell32/assoc.c index 686c3239a14..21df4930720 100644 --- a/dlls/shell32/assoc.c +++ b/dlls/shell32/assoc.c @@ -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;