diff options
author | Max Horn | 2003-07-28 02:10:24 +0000 |
---|---|---|
committer | Max Horn | 2003-07-28 02:10:24 +0000 |
commit | 80bea5bc7201dbee7b1193c22c18cc6219180731 (patch) | |
tree | 558960c51a6f34208e8cd0ff744ae3b3ce3903bc /sword2/driver/driver96.h | |
parent | 88b70db20f641c7f177935c18db5383400c3f32c (diff) | |
download | scummvm-rg350-80bea5bc7201dbee7b1193c22c18cc6219180731.tar.gz scummvm-rg350-80bea5bc7201dbee7b1193c22c18cc6219180731.tar.bz2 scummvm-rg350-80bea5bc7201dbee7b1193c22c18cc6219180731.zip |
fixed some warnings
svn-id: r9216
Diffstat (limited to 'sword2/driver/driver96.h')
-rw-r--r-- | sword2/driver/driver96.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sword2/driver/driver96.h b/sword2/driver/driver96.h index 87c40c3fbd..dfa812bac0 100644 --- a/sword2/driver/driver96.h +++ b/sword2/driver/driver96.h @@ -410,7 +410,7 @@ // // --------------------------------------------------------------------------- // -// int32 ReportFatalError(uint8 *error) +// int32 ReportFatalError(const uint8 *error) // // Creates a message box and displays the error string passed in, as well as // the filename and line that the function was called from @@ -1475,8 +1475,8 @@ extern int32 GrabScreenShot(void); //extern int32 InitialiseWindow(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow, char *gameName); extern int32 CloseAppWindow(void); extern int32 ServiceWindows(void); -extern int32 _ReportDriverError(int32 error, uint8 *filename, uint32 line); -extern int32 _ReportFatalError(uint8 *error, uint8 *filename, uint32 line); +extern int32 _ReportDriverError(int32 error, const uint8 *filename, uint32 line); +extern int32 _ReportFatalError(const uint8 *error, const uint8 *filename, uint32 line); extern int32 DisableQuitKey(void); extern void SetWindowName(const char *windowName); //----------------------------------------------------------------------------- @@ -1622,8 +1622,8 @@ extern void GetModuleFileName(void *module, char *destStr, uint32 maxLen); //----------------------------------------------------------------------------- //Macro for calling error handler with source filename and line. //----------------------------------------------------------------------------- -#define ReportDriverError(f) _ReportDriverError(f, (uint8 *) __FILE__, (uint32) __LINE__) -#define ReportFatalError(f) _ReportFatalError(f, (uint8 *) __FILE__, (uint32) __LINE__) +#define ReportDriverError(f) _ReportDriverError(f, (const uint8 *) __FILE__, (uint32) __LINE__) +#define ReportFatalError(f) _ReportFatalError(f, (const uint8 *) __FILE__, (uint32) __LINE__) //----------------------------------------------------------------------------- |