diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-06-25 20:41:57 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-06-25 20:41:57 (GMT) |
commit | 7491f52992450bc6853c44c28db646c6176cbfd0 (patch) | |
tree | 3ec314d959220760927dc3741e8e51bc64267471 /Source/kwsys | |
parent | 953439f738e98b463e2583cdbe1c756a7045eacb (diff) | |
download | CMake-7491f52992450bc6853c44c28db646c6176cbfd0.zip CMake-7491f52992450bc6853c44c28db646c6176cbfd0.tar.gz CMake-7491f52992450bc6853c44c28db646c6176cbfd0.tar.bz2 |
ENH: first pass at VS 10, can bootstrap CMake, but many tests still fail
Diffstat (limited to 'Source/kwsys')
-rw-r--r-- | Source/kwsys/ProcessWin32.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/kwsys/ProcessWin32.c b/Source/kwsys/ProcessWin32.c index cba1e61..7886c21 100644 --- a/Source/kwsys/ProcessWin32.c +++ b/Source/kwsys/ProcessWin32.c @@ -806,7 +806,7 @@ int kwsysProcess_SetPipeFile(kwsysProcess* cp, int pipe, const char* file) } if(file) { - *pfile = malloc(strlen(file)+1); + *pfile = (char*)malloc(strlen(file)+1); if(!*pfile) { return 0; @@ -1666,7 +1666,7 @@ int kwsysProcessInitialize(kwsysProcess* cp) cp->RealWorkingDirectoryLength = GetCurrentDirectory(0, 0); if(cp->RealWorkingDirectoryLength > 0) { - cp->RealWorkingDirectory = malloc(cp->RealWorkingDirectoryLength); + cp->RealWorkingDirectory = (char*)malloc(cp->RealWorkingDirectoryLength); if(!cp->RealWorkingDirectory) { return 0; @@ -1834,7 +1834,7 @@ int kwsysProcessCreate(kwsysProcess* cp, int index, /* The forwarding executable is given a handle to the error pipe and resume and kill events. */ - realCommand = malloc(strlen(cp->Win9x)+strlen(cp->Commands[index])+100); + realCommand = (char*)malloc(strlen(cp->Win9x)+strlen(cp->Commands[index])+100); if(!realCommand) { return 0; @@ -2672,7 +2672,7 @@ static int kwsysProcess_List__New_NT4(kwsysProcess_List* self) loaded in this program. This does not actually increment the reference count to the module so we do not need to close the handle. */ - HANDLE hNT = GetModuleHandle("ntdll.dll"); + HMODULE hNT = GetModuleHandle("ntdll.dll"); if(hNT) { /* Get pointers to the needed API functions. */ @@ -2776,7 +2776,7 @@ static int kwsysProcess_List__New_Snapshot(kwsysProcess_List* self) loaded in this program. This does not actually increment the reference count to the module so we do not need to close the handle. */ - HANDLE hKernel = GetModuleHandle("kernel32.dll"); + HMODULE hKernel = GetModuleHandle("kernel32.dll"); if(hKernel) { self->P_CreateToolhelp32Snapshot = |