small fixes

This commit is contained in:
dborth 2008-09-27 08:36:22 +00:00
parent 7ebc1432c0
commit d8b1c813e5
3 changed files with 2 additions and 5 deletions

View File

@ -209,8 +209,6 @@ LoadFATFile ()
WaitPrompt((char*) "Error opening file"); WaitPrompt((char*) "Error opening file");
return 0; return 0;
} }
return 0;
} }
/**************************************************************************** /****************************************************************************

View File

@ -233,7 +233,7 @@ void StripExt(char* returnstring, char * inputstring)
strcpy (returnstring, inputstring); strcpy (returnstring, inputstring);
loc_dot = strrchr(returnstring,'.'); loc_dot = strrchr(returnstring,'.');
if (loc_dot != NULL) if (loc_dot != NULL)
loc_dot = 0; // strip file extension *loc_dot = 0; // strip file extension
} }
/**************************************************************************** /****************************************************************************

View File

@ -284,8 +284,7 @@ SaveBufferToSMB (char *filepath, int datasize, bool silent)
int int
LoadBufferFromSMB (char *filepath, bool silent) LoadBufferFromSMB (char *filepath, bool silent)
{ {
int result = LoadBufferFromSMB((char *)savebuffer, filepath, silent); return LoadBufferFromSMB((char *)savebuffer, filepath, silent);
return result;
} }
int int