Module: wine Branch: master Commit: 9491044e443bf5627f6ec5ecb42e1aafd26336b9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9491044e443bf5627f6ec5ecb4...
Author: Sebastian Lackner sebastian@fds-team.de Date: Thu Feb 26 06:32:13 2015 +0100
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 686c323..21df493 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;