diff --git a/dll/win32/shell32/CQueryAssociations.cpp b/dll/win32/shell32/CQueryAssociations.cpp index 974ea5d22b4..f115a3d5a3d 100644 --- a/dll/win32/shell32/CQueryAssociations.cpp +++ b/dll/win32/shell32/CQueryAssociations.cpp @@ -98,9 +98,12 @@ HRESULT STDMETHODCALLTYPE CQueryAssociations::Init( HRESULT hr; LPCWSTR pchDotExt; - pchDotExt = PathFindExtensionW(pszAssoc); - if (pchDotExt && *pchDotExt) - pszAssoc = pchDotExt; + if (StrChrW(pszAssoc, L'\\')) + { + pchDotExt = PathFindExtensionW(pszAssoc); + if (pchDotExt && *pchDotExt) + pszAssoc = pchDotExt; + } LONG ret = RegOpenKeyExW(HKEY_CLASSES_ROOT, pszAssoc,