[ros-diffs] [cwittich] 44726: [kernel32] sync enumerate_mapped_resources and update_add_resource to wine 1.1.35

cwittich at svn.reactos.org cwittich at svn.reactos.org
Wed Dec 23 12:13:35 CET 2009


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/res.c?rev=44726&r1=44725&r2=44726&view=diff
==============================================================================
--- 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 );




More information about the Ros-diffs mailing list