Skip to content

Commit

Permalink
Small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamyCecil committed Jan 21, 2025
1 parent 7baf35a commit bf9cefc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Engine/Base/CTString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ CTString CTString::Undecorated(void) const
return strResult;
}

BOOL IsSpace(char c)
static BOOL IsSpace(char c)
{
return c==' ' || c=='\t' || c=='\n' || c=='\r';
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Engine/Base/Shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ extern void ReportGlobalMemoryStatus(void)
CPrintF(TRANS(" Process working set: %uMB-%uMB\n\n"), uMin / MB, uMax / MB);

} else {
CPrintF(TRANS("Cannot get global memory status: %s\n"), GetWindowsError(GetLastError()));
CPrintF(TRANS("Cannot get global memory status: %s\n"), GetWindowsError(GetLastError()).ConstData());
}
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Engine/Base/Stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ int CTStream::ExceptionFilter(DWORD dwCode, _EXCEPTION_POINTERS *pExceptionInfoP
*/
void CTStream::ExceptionFatalError(void)
{
FatalError(GetWindowsError(GetLastError()).ConstData());
FatalError("%s", GetWindowsError(GetLastError()).ConstData());
}

#endif // SE1_WIN
Expand Down

0 comments on commit bf9cefc

Please sign in to comment.