Fix resource enumeration of 64-bit images
Rob Mensching committed
Mar 31, 2022 at 11:34 UTC
167296c42497c4e95f0d5d71168542d747655981
1 file changed
+1
-1
src/dtf/WixToolset.Dtf.Resources/ResourceCollection.cs
+1
-1
@@ -144,7 +144,7 @@ namespace WixToolset.Dtf.Resources
144
private bool EnumResLangs(IntPtr module, IntPtr type, IntPtr name, ushort langId, IntPtr param)
145
{
146
Resource res;
147
- if (((int) type) == ResourceType.Version.IntegerValue)
147
+ if (type == (IntPtr)ResourceType.Version.IntegerValue)
148
{
149
res = new VersionResource(ResourceNameToString(name), langId);
150
}