Fix an infinite loop when unregistering OCContextMenu without admin rights

That mistake was introduced when changing the bool return value to an
HRESULT in the imported RegDelnode code.
This commit is contained in:
Jocelyn Turcotte 2015-02-12 13:34:01 +01:00
parent 3439ea395b
commit bed34b1ddd

View file

@ -67,7 +67,7 @@ HRESULT RegDelnodeRecurse(HKEY hKeyRoot, LPTSTR lpSubKey)
StringCchCopy(lpEnd, MAX_PATH * 2, szName);
if (!RegDelnodeRecurse(hKeyRoot, lpSubKey)) {
if (RegDelnodeRecurse(hKeyRoot, lpSubKey) != ERROR_SUCCESS) {
break;
}