diff --git a/checkin_notes b/checkin_notes index 14343fbe4f..14697da5c6 100644 --- a/checkin_notes +++ b/checkin_notes @@ -452,3 +452,12 @@ Charlie 4 Sep 2007 mac_build/ UpperCase2.xcodeproj/ project.pbxproj + +David 12 Sept 2007 + - uppercase: fix crash in standalone mode + - wrapper: fix append mode in win_fopen() + + uppercase/ + uc_graphics.C + wrapper/ + wrapper.C diff --git a/uppercase/uc_graphics.C b/uppercase/uc_graphics.C index 6d3f5787a0..fe15b3e3e1 100644 --- a/uppercase/uc_graphics.C +++ b/uppercase/uc_graphics.C @@ -45,6 +45,7 @@ static void parse_project_prefs(char* buf) { char cs[256]; COLOR c; double hue; + if (!buf) return; if (parse_str(buf, "", cs, 256)) { if (!strcmp(cs, "Tahiti Sunset")) { hue = .9; diff --git a/wrapper/wrapper.C b/wrapper/wrapper.C index ab837ee987..524155b2ac 100644 --- a/wrapper/wrapper.C +++ b/wrapper/wrapper.C @@ -181,6 +181,7 @@ HANDLE win_fopen(const char* path, const char* mode) { OPEN_ALWAYS, 0, 0 ); + SetFilePointer(hAppend, 0, NULL, FILE_END); } else { return 0; }