[ros-diffs] [pschweitzer] 56116: [ATL] Fix a bug in CComModule::UpdateRegistryFromResource that lead resources not to be unregistered

pschweitzer at svn.reactos.org pschweitzer at svn.reactos.org
Sun Mar 11 13:27:13 UTC 2012


Author: pschweitzer
Date: Sun Mar 11 13:27:11 2012
New Revision: 56116

URL: http://svn.reactos.org/svn/reactos?rev=56116&view=rev
Log:
[ATL]
Fix a bug in CComModule::UpdateRegistryFromResource that lead resources not to be unregistered

Modified:
    trunk/reactos/lib/atl/atlbase.h

Modified: trunk/reactos/lib/atl/atlbase.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/atlbase.h?rev=56116&r1=56115&r2=56116&view=diff
==============================================================================
--- trunk/reactos/lib/atl/atlbase.h [iso-8859-1] (original)
+++ trunk/reactos/lib/atl/atlbase.h [iso-8859-1] Sun Mar 11 13:27:11 2012
@@ -378,7 +378,7 @@
 		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;
 	}




More information about the Ros-diffs mailing list