VC2005 const fixes
This was SVN commit r2451.
This commit is contained in:
parent
4a3a3db0aa
commit
54bd7367e8
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user