Andrew Talbot : wineboot: Cast-qual warning fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Sat Oct 7 11:32:01 CDT 2006
Module: wine
Branch: master
Commit: 457ce21fcfd8d687fa5ef917a13e7d33e7515ef7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=457ce21fcfd8d687fa5ef917a13e7d33e7515ef7
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Fri Oct 6 20:34:29 2006 +0100
wineboot: Cast-qual warning fix.
---
programs/wineboot/wineboot.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
index d074533..1434003 100644
--- a/programs/wineboot/wineboot.c
+++ b/programs/wineboot/wineboot.c
@@ -547,12 +547,12 @@ static int ProcessWindowsFileProtection(
{
WIN32_FIND_DATA finddata;
LPSTR custom_dllcache = NULL;
- static const CHAR default_dllcache[] = "C:\\Windows\\System32\\dllcache";
+ static CHAR default_dllcache[] = "C:\\Windows\\System32\\dllcache";
HANDLE find_handle;
BOOL find_rc;
DWORD rc;
HKEY hkey;
- LPCSTR dllcache;
+ LPSTR dllcache;
CHAR find_string[MAX_PATH];
CHAR windowsdir[MAX_PATH];
@@ -574,7 +574,7 @@ static int ProcessWindowsFileProtection(
dllcache = custom_dllcache;
else
dllcache = default_dllcache;
-
+
strcpy(find_string,dllcache);
strcat(find_string,"\\*.*");
@@ -603,7 +603,7 @@ static int ProcessWindowsFileProtection(
windowsdir, currentpath, &sz, targetpath,&sz2);
sz = MAX_PATH;
rc = VerInstallFile(0, finddata.cFileName, finddata.cFileName,
- (LPSTR) dllcache, targetpath, currentpath, tempfile,&sz);
+ dllcache, targetpath, currentpath, tempfile,&sz);
if (rc != ERROR_SUCCESS)
{
WINE_ERR("WFP: %s error 0x%x\n",finddata.cFileName,rc);
More information about the wine-cvs
mailing list