- uppercase: fix crash in standalone mode

- wrapper: fix append mode in win_fopen()

svn path=/trunk/boinc_samples/; revision=13585
This commit is contained in:
David Anderson 2007-09-13 07:30:27 +00:00
parent f1e8b94d09
commit fea864af4d
3 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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, "<color_scheme>", cs, 256)) {
if (!strcmp(cs, "Tahiti Sunset")) {
hue = .9;

View File

@ -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;
}