Michael Stefaniuc : version: VS_FILE_INFO is already and INTRESOURCE ( PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Mar 5 09:53:24 CST 2015
Module: wine
Branch: master
Commit: e8b76b32e6c660a21675f022fe35dcb923e60aec
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e8b76b32e6c660a21675f022fe35dcb923e60aec
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Mar 5 10:50:46 2015 +0100
version: VS_FILE_INFO is already and INTRESOURCE (PVS-Studio).
---
dlls/version/version.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/version/version.c b/dlls/version/version.c
index 680fa31..68dab66 100644
--- a/dlls/version/version.c
+++ b/dlls/version/version.c
@@ -636,7 +636,7 @@ DWORD WINAPI GetFileVersionInfoSizeW( LPCWSTR filename, LPDWORD handle )
if ((magic == 1) && (hModule = LoadLibraryExW( filename, 0, LOAD_LIBRARY_AS_DATAFILE )))
{
HRSRC hRsrc = FindResourceW( hModule, MAKEINTRESOURCEW(VS_VERSION_INFO),
- MAKEINTRESOURCEW(VS_FILE_INFO) );
+ (LPWSTR)VS_FILE_INFO );
if (hRsrc)
{
magic = IMAGE_NT_SIGNATURE;
@@ -733,7 +733,7 @@ BOOL WINAPI GetFileVersionInfoW( LPCWSTR filename, DWORD handle,
if ((magic == 1) && (hModule = LoadLibraryExW( filename, 0, LOAD_LIBRARY_AS_DATAFILE )))
{
HRSRC hRsrc = FindResourceW( hModule, MAKEINTRESOURCEW(VS_VERSION_INFO),
- MAKEINTRESOURCEW(VS_FILE_INFO) );
+ (LPWSTR)VS_FILE_INFO );
if (hRsrc)
{
HGLOBAL hMem = LoadResource( hModule, hRsrc );
More information about the wine-cvs
mailing list