From 9491044e443bf5627f6ec5ecb42e1aafd26336b9 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 26 Feb 2015 06:32:13 +0100 Subject: [PATCH] shell32: Simplify check for an empty string. --- dlls/shell32/assoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.4.GIT