[ros-diffs] [fireball] 48386: - Fix build, sorry.

fireball at svn.reactos.org fireball at svn.reactos.org
Sat Jul 31 22:20:35 UTC 2010


Author: fireball
Date: Sat Jul 31 22:20:34 2010
New Revision: 48386

URL: http://svn.reactos.org/svn/reactos?rev=48386&view=rev
Log:
- Fix build, sorry.

Modified:
    trunk/reactos/dll/win32/version/resource.c

Modified: trunk/reactos/dll/win32/version/resource.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/version/resource.c?rev=48386&r1=48385&r2=48386&view=diff
==============================================================================
--- trunk/reactos/dll/win32/version/resource.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/version/resource.c [iso-8859-1] Sat Jul 31 22:20:34 2010
@@ -83,9 +83,9 @@
     while (min <= max)
     {
         pos = (min + max) / 2;
-        if (entry[pos].u.Id == id)
-            return (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root + entry[pos].u2.s.OffsetToDirectory);
-        if (entry[pos].u.Id > id) max = pos - 1;
+        if (entry[pos].u1.Id == id)
+            return (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root + entry[pos].u2.s3.OffsetToDirectory);
+        if (entry[pos].u1.Id > id) max = pos - 1;
         else min = pos + 1;
     }
     return NULL;
@@ -104,7 +104,7 @@
     const IMAGE_RESOURCE_DIRECTORY_ENTRY *entry;
 
     entry = (const IMAGE_RESOURCE_DIRECTORY_ENTRY *)(dir + 1);
-    return (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root + entry->u2.s.OffsetToDirectory);
+    return (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root + entry->u2.s3.OffsetToDirectory);
 }
 
 




More information about the Ros-diffs mailing list