From a4fc196cd13b655893902e75dfc0c74a0d54aede Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Mon, 10 May 2010 22:41:28 +0000 Subject: [PATCH] mingw fixes git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4831 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/wizard.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/src/wizard.cpp b/source/src/wizard.cpp index e8748f30..67797031 100644 --- a/source/src/wizard.cpp +++ b/source/src/wizard.cpp @@ -122,7 +122,7 @@ int wizardmain(int argc, char **argv) if(!_getcwd(cwd.buf, MAX_PATH)) { printf("Failed!\n"); - printf("Could not get current working directory: %d\n", GetLastError()); + printf("Could not get current working directory: %u\n", (uint)GetLastError()); return EXIT_FAILURE; } path.advance(strlen(cwd.buf)); @@ -131,7 +131,7 @@ int wizardmain(int argc, char **argv) path.put(" -S", 3); path.put(wsname, strlen(wsname)); path.add(' '); - path.put(argstr, argstr.length()); + path.put(argstr.getbuf(), argstr.length()); winserviceinstaller installer(wsname, wsdisplayname, path.getbuf()); @@ -139,7 +139,7 @@ int wizardmain(int argc, char **argv) if(!installer.OpenManger()) { printf("Failed!\n"); - printf("Could not open the Service Control Manager: %d\n", GetLastError()); + printf("Could not open the Service Control Manager: %u\n", (uint)GetLastError()); installer.CloseManager(); return EXIT_FAILURE; } @@ -148,7 +148,7 @@ int wizardmain(int argc, char **argv) { printf("Failed!\n"); if(r == -1) printf("Error accessing the Service Control Manager\n"); - else if(r == 1) printf("A windows service with this name (%s) is already installed: %d\n", wsname, GetLastError()); + else if(r == 1) printf("A windows service with this name (%s) is already installed: %u\n", wsname, (uint)GetLastError()); return EXIT_FAILURE; } @@ -156,7 +156,7 @@ int wizardmain(int argc, char **argv) { printf("Failed!\n"); if(r == -1) printf("Error accessing the Service Control Manager\n"); - else if(r == 0) printf("Could not create the new windows service: %d\n", GetLastError()); + else if(r == 0) printf("Could not create the new windows service: %u\n", (uint)GetLastError()); return EXIT_FAILURE; }