Author: akhaldi
Date: Mon May 17 00:39:59 2010
New Revision: 47247
URL:
http://svn.reactos.org/svn/reactos?rev=47247&view=rev
Log:
[VERSION]
- Update the referencing of IMAGE_RESOURCE_DIRECTORY_ENTRY fields (the structure was
updated in the previous commit).
Modified:
branches/header-work/dll/win32/version/resource.c
Modified: branches/header-work/dll/win32/version/resource.c
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/dll/win32/version/r…
==============================================================================
--- branches/header-work/dll/win32/version/resource.c [iso-8859-1] (original)
+++ branches/header-work/dll/win32/version/resource.c [iso-8859-1] Mon May 17 00:39:59
2010
@@ -67,9 +67,9 @@
while (min <= max)
{
pos = (min + max) / 2;
- if (entry[pos].u1.s2.Id == id)
- return (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root +
entry[pos].u2.s3.OffsetToDirectory);
- if (entry[pos].u1.s2.Id > id) max = pos - 1;
+ 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;
else min = pos + 1;
}
return NULL;
@@ -88,7 +88,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.s3.OffsetToDirectory);
+ return (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root +
entry->u2.s.OffsetToDirectory);
}