rpcrt4: Use RegDeleteTree to properly unregister interfaces.
This commit is contained in:
parent
77b3864fed
commit
ad54700b94
|
@ -298,7 +298,7 @@ HRESULT WINAPI NdrDllUnregisterProxy(HMODULE hDll,
|
|||
|
||||
strcpyW( keyname, interfaceW );
|
||||
format_clsid( keyname + strlenW(keyname), proxy->header.piid );
|
||||
RegDeleteKeyW(HKEY_CLASSES_ROOT, keyname);
|
||||
RegDeleteTreeW(HKEY_CLASSES_ROOT, keyname);
|
||||
}
|
||||
pProxyFileList++;
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ HRESULT WINAPI NdrDllUnregisterProxy(HMODULE hDll,
|
|||
/* unregister clsid */
|
||||
strcpyW( keyname, clsidW );
|
||||
format_clsid( keyname + strlenW(keyname), pclsid );
|
||||
RegDeleteKeyW(HKEY_CLASSES_ROOT, keyname);
|
||||
RegDeleteTreeW(HKEY_CLASSES_ROOT, keyname);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue