Rev 185 | Rev 192 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 185 | Rev 188 | ||
---|---|---|---|
Line 105... | Line 105... | ||
105 | Handle h; |
105 | Handle h; |
106 | Boolean res = false; |
106 | Boolean res = false; |
107 | char *reasonstr = ""; |
107 | char *reasonstr = ""; |
108 | 108 | ||
109 | FSpDelete(&sfr->sfFile); |
109 | FSpDelete(&sfr->sfFile); |
110 | if(!FSpCreate(&sfr->sfFile,SIG_SIMPLETEXT,TEXT_FILETYPE,sfr->sfScript)) |
110 | if(FSpCreate(&sfr->sfFile,SIG_SIMPLETEXT,TEXT_FILETYPE,sfr->sfScript) == noErr) |
111 | if(!FSpOpenDF(&sfr->sfFile,fsWrPerm,&r)){ |
111 | if(FSpOpenDF(&sfr->sfFile,fsWrPerm,&r) == noErr){ |
112 | 112 | ||
113 | if( (h = PINEWHANDLE(1)) ){ // don't set initial size to 0, since some hosts (e.g. GIMP/PSPI) are incompatible with that. res = !(saveparams(h) || savehandleintofile(h,r)) ; |
113 | if( (h = PINEWHANDLE(1)) ){ // don't set initial size to 0, since some hosts (e.g. GIMP/PSPI) are incompatible with that. res = !(saveparams(h) || savehandleintofile(h,r)) ; |
114 | res = !(saveparams(h) || savehandleintofile(h,r)) ; |
114 | res = !(saveparams(h) || savehandleintofile(h,r)) ; |
115 | PIDISPOSEHANDLE(h); |
115 | PIDISPOSEHANDLE(h); |
116 | } |
116 | } |