Author: cwittich
Date: Wed Dec 23 12:13:35 2009
New Revision: 44726
URL:
http://svn.reactos.org/svn/reactos?rev=44726&view=rev
Log:
[kernel32]
sync enumerate_mapped_resources and update_add_resource to wine 1.1.35
Modified:
trunk/reactos/dll/win32/kernel32/misc/res.c
Modified: trunk/reactos/dll/win32/kernel32/misc/res.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/re…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/res.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/res.c [iso-8859-1] Wed Dec 23 12:13:35 2009
@@ -310,7 +310,7 @@
if (existing)
{
if (!overwrite_existing)
- return TRUE;
+ return FALSE;
list_remove( &existing->entry );
HeapFree( GetProcessHeap(), 0, existing );
}
@@ -519,8 +519,11 @@
resdata = allocate_resource_data( Lang, data->CodePage, p,
data->Size, FALSE );
if (resdata)
- update_add_resource( updates, Type, Name, resdata, FALSE );
- }
+ {
+ if (!update_add_resource( updates, Type, Name, resdata, FALSE ))
+ HeapFree( GetProcessHeap(), 0, resdata );
+ }
+ }
res_free_str( Name );
}
res_free_str( Type );