Module: wine Branch: master Commit: f463b9d4225a2d3ef929db9fdf449799de67968c URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f463b9d4225a2d3ef929db9f...
Author: Robert Shearman rob@codeweavers.com Date: Mon Aug 28 14:18:56 2006 +0100
ole32: AppId is a value under the clsid key, rather than a key.
---
dlls/ole32/compobj.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index 7ce8a69..cd3a5c3 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -1138,12 +1138,12 @@ HRESULT COM_OpenKeyForAppIdFromCLSID(REF HRESULT hr;
/* read the AppID value under the class's key */ - hr = COM_OpenKeyForCLSID(clsid, szAppId, KEY_READ, &hkey); + hr = COM_OpenKeyForCLSID(clsid, NULL, KEY_READ, &hkey); if (FAILED(hr)) return hr;
size = sizeof(buf); - res = RegQueryValueExW(hkey, NULL, NULL, &type, (LPBYTE)buf, &size); + res = RegQueryValueExW(hkey, szAppId, NULL, &type, (LPBYTE)buf, &size); RegCloseKey(hkey); if (res == ERROR_FILE_NOT_FOUND) return REGDB_E_KEYMISSING;