Andrew Talbot : version: Write-strings warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 11 13:37:24 CDT 2006


Module: wine
Branch: master
Commit: b6f190ee429dc3d7a5131ba0b7494dfada0416d0
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=b6f190ee429dc3d7a5131ba0b7494dfada0416d0

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Fri Aug 11 14:53:25 2006 +0100

version: Write-strings warnings fix.

---

 dlls/version/install.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/version/install.c b/dlls/version/install.c
index d33fc17..c7565af 100644
--- a/dlls/version/install.c
+++ b/dlls/version/install.c
@@ -454,6 +454,7 @@ DWORD WINAPI VerInstallFileA(
 	    buf2 = _fetch_versioninfo(tmpfn,&tmpvffi);
 	    if (buf2) {
 	    	char	*tbuf1,*tbuf2;
+	    	static CHAR trans_array[] = "\\VarFileInfo\\Translation";
 		UINT	len1,len2;
 
 		len1=len2=40;
@@ -470,8 +471,8 @@ DWORD WINAPI VerInstallFileA(
 		    (destvffi->dwFileSubtype!=tmpvffi->dwFileSubtype)
 		)
 		    xret |= VIF_MISMATCH|VIF_DIFFTYPE;
-		if (VerQueryValueA(buf1,"\\VarFileInfo\\Translation",(LPVOID*)&tbuf1,&len1) &&
-		    VerQueryValueA(buf2,"\\VarFileInfo\\Translation",(LPVOID*)&tbuf2,&len2)
+		if (VerQueryValueA(buf1,trans_array,(LPVOID*)&tbuf1,&len1) &&
+		    VerQueryValueA(buf2,trans_array,(LPVOID*)&tbuf2,&len2)
 		) {
                     /* Do something with tbuf1 and tbuf2
 		     * generates DIFFLANG|MISMATCH




More information about the wine-cvs mailing list