From badf3f77ff4766b9f336115e25a98bf0bbca715a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 20 Sep 2007 20:34:24 +0000 Subject: [PATCH] svn path=/trunk/boinc_samples/; revision=13615 --- wrapper/wrapper.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrapper/wrapper.C b/wrapper/wrapper.C index 9f51c72a0c..9dd32fa608 100644 --- a/wrapper/wrapper.C +++ b/wrapper/wrapper.C @@ -173,7 +173,7 @@ HANDLE win_fopen(const char* path, const char* mode) { 0, 0 ); } else if (!strcmp(mode, "a")) { - HANDLE happend = CreateFile( + HANDLE hAppend = CreateFile( path, GENERIC_WRITE, FILE_SHARE_WRITE, @@ -459,7 +459,7 @@ int main(int argc, char** argv) { parse_state_file(); read_checkpoint(ntasks, cpu); - if (ntasks > tasks.size()) { + if (ntasks > (int)tasks.size()) { fprintf(stderr, "Checkpoint file: ntasks %d too large\n", ntasks); boinc_finish(1); }