Aric Stewart : version: Check for 16-bit file format before returning ERROR_RESOURCE_DATA_NOT_FOUND .
Alexandre Julliard
julliard at winehq.org
Wed Feb 13 10:40:10 CST 2008
Module: wine
Branch: master
Commit: 1a328d91263079b1678838d89d999296f3da6636
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a328d91263079b1678838d89d999296f3da6636
Author: Aric Stewart <aric at codeweavers.com>
Date: Wed Feb 13 10:17:05 2008 -0600
version: Check for 16-bit file format before returning ERROR_RESOURCE_DATA_NOT_FOUND.
---
dlls/version/info.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/version/info.c b/dlls/version/info.c
index 2be1df7..395895b 100644
--- a/dlls/version/info.c
+++ b/dlls/version/info.c
@@ -253,9 +253,6 @@ static DWORD VERSION_GetFileVersionInfo_PE( LPCWSTR filename, DWORD datasize, LP
{
WARN("Could not load %s\n", debugstr_w(filename));
- if (GetLastError() == ERROR_BAD_EXE_FORMAT)
- return 0xFFFFFFFF;
-
return 0;
}
hRsrc = FindResourceW(hModule,
@@ -384,7 +381,10 @@ static DWORD VERSION_GetFileVersionInfo_16( LPCSTR filename, DWORD datasize, LPV
if(hModule < 32)
{
WARN("Could not load %s\n", debugstr_a(filename));
- return 0;
+ if (hModule == ERROR_BAD_FORMAT)
+ return 0xFFFFFFFF;
+ else
+ return 0x0;
}
hRsrc = FindResource16(hModule,
MAKEINTRESOURCEA(VS_VERSION_INFO),
More information about the wine-cvs
mailing list