version: Write-strings warnings fix.

This commit is contained in:
Andrew Talbot 2006-08-11 14:53:25 +01:00 committed by Alexandre Julliard
parent ea79639b03
commit b6f190ee42
1 changed files with 3 additions and 2 deletions

View File

@ -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