1
0
forked from 0ad/0ad

VC2005 const fixes

This was SVN commit r2451.
This commit is contained in:
Ykkrosh 2005-07-01 02:11:45 +00:00
parent 4a3a3db0aa
commit 54bd7367e8
2 changed files with 2 additions and 2 deletions

View File

@ -347,7 +347,7 @@ ErrorReaction display_error(const wchar_t* description, int flags,
line = 0;
// display in output window; double-click will navigate to error location.
char* slash = strrchr(file, DIR_SEP);
const char* slash = strrchr(file, DIR_SEP);
const char* filename = slash? slash+1 : file;
debug_wprintf(L"%hs(%d): %s\n", filename, line, description);

View File

@ -209,7 +209,7 @@ static int dll_list_add(const char* name)
// if necessary, copy to new buffer and add it there.
char buf[MAX_PATH];
const char* dll_name = name;
char* ext = strrchr(name, '.');
const char* ext = strrchr(name, '.');
if(!ext || stricmp(ext, ".dll") != 0)
{
snprintf(buf, ARRAY_SIZE(buf), "%s.dll", name);