- Fix warnings
Modified: trunk/reactos/lib/msi/action.c
Modified: trunk/reactos/lib/msi/appsearch.c
Modified: trunk/reactos/lib/msi/msi.c
_____
Modified: trunk/reactos/lib/msi/action.c
--- trunk/reactos/lib/msi/action.c 2005-07-27 02:03:01 UTC (rev
16786)
+++ trunk/reactos/lib/msi/action.c 2005-07-27 02:04:55 UTC (rev
16787)
@@ -2635,7 +2635,7 @@
version = HeapAlloc(GetProcessHeap(),0,versize);
GetFileVersionInfoW(file->TargetPath, 0, versize,
version);
- VerQueryValueW(version, name, (LPVOID*)&lpVer,
&sz);
+ VerQueryValueW(version, (LPWSTR)name,
(LPVOID*)&lpVer, &sz);
sprintfW(filever,name_fmt,
HIWORD(lpVer->dwFileVersionMS),
_____
Modified: trunk/reactos/lib/msi/appsearch.c
--- trunk/reactos/lib/msi/appsearch.c 2005-07-27 02:03:01 UTC (rev
16786)
+++ trunk/reactos/lib/msi/appsearch.c 2005-07-27 02:04:55 UTC (rev
16787)
@@ -538,7 +538,7 @@
}
else
{
- DWORD zero, size = GetFileVersionInfoSizeW(filePath, &zero);
+ DWORD zero, size = GetFileVersionInfoSizeW((LPWSTR)filePath,
&zero);
if (size)
{
@@ -550,8 +550,8 @@
UINT versionLen;
LPVOID subBlock = NULL;
- if (GetFileVersionInfoW(filePath, 0, size, buf))
- VerQueryValueW(buf, rootW, &subBlock, &versionLen);
+ if (GetFileVersionInfoW((LPWSTR)filePath, 0, size,
buf))
+ VerQueryValueW(buf, (LPWSTR)rootW, &subBlock,
&versionLen);
if (subBlock)
{
VS_FIXEDFILEINFO *info =
_____
Modified: trunk/reactos/lib/msi/msi.c
--- trunk/reactos/lib/msi/msi.c 2005-07-27 02:03:01 UTC (rev 16786)
+++ trunk/reactos/lib/msi/msi.c 2005-07-27 02:04:55 UTC (rev 16787)
@@ -1195,7 +1195,7 @@
lpVersionBuf, pcchVersionBuf?*pcchVersionBuf:0,
lpLangBuf, pcchLangBuf?*pcchLangBuf:0);
- dwVerLen = GetFileVersionInfoSizeW(szFilePath, NULL);
+ dwVerLen = GetFileVersionInfoSizeW((LPWSTR)szFilePath, NULL);
if( !dwVerLen )
return GetLastError();
@@ -1206,14 +1206,14 @@
goto end;
}
- if( !GetFileVersionInfoW(szFilePath, 0, dwVerLen, lpVer) )
+ if( !GetFileVersionInfoW((LPWSTR)szFilePath, 0, dwVerLen, lpVer) )
{
ret = GetLastError();
goto end;
}
if( lpVersionBuf && pcchVersionBuf && *pcchVersionBuf )
{
- if( VerQueryValueW(lpVer, szVersionResource, (LPVOID*)&ffi,
&puLen) &&
+ if( VerQueryValueW(lpVer, (LPWSTR)szVersionResource,
(LPVOID*)&ffi, &puLen) &&
(puLen > 0) )
{
wsprintfW(tmp, szVersionFormat,