Fix a bug in CComModule::UpdateRegistryFromResource that lead resources not to be unregistered

svn path=/trunk/; revision=56116
This commit is contained in:
Pierre Schweitzer 2012-03-11 13:27:11 +00:00
parent 741e0558b8
commit b123382a03

View file

@ -378,7 +378,7 @@ public:
if (bRegister != FALSE)
hResult = registrar.ResourceRegister(modulePath, nResID, _T("REGISTRY"));
else
hResult = registrar.ResourceRegister(modulePath, nResID, _T("REGISTRY"));
hResult = registrar.ResourceUnregister(modulePath, nResID, _T("REGISTRY"));
return hResult;
}