diff --git a/dll/win32/shell32/CQueryAssociations.cpp b/dll/win32/shell32/CQueryAssociations.cpp index 093a536b4a1..1a1561fd4b6 100644 --- a/dll/win32/shell32/CQueryAssociations.cpp +++ b/dll/win32/shell32/CQueryAssociations.cpp @@ -96,6 +96,11 @@ HRESULT STDMETHODCALLTYPE CQueryAssociations::Init( { WCHAR *progId; HRESULT hr; + LPCWSTR pchDotExt; + + pchDotExt = PathFindExtensionW(pszAssoc); + if (pchDotExt && *pchDotExt) + pszAssoc = pchDotExt; LONG ret = RegOpenKeyExW(HKEY_CLASSES_ROOT, pszAssoc,