mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-25 22:30:27 +00:00
Fix: SetCurrentImageDir() to always make sure g_sCurrentDir has trailing backslash
This commit is contained in:
parent
807fcce1ef
commit
ce2f0b75cb
@ -622,14 +622,12 @@ void SetCurrentImageDir(const char* pszImageDir)
|
||||
{
|
||||
strcpy(g_sCurrentDir, pszImageDir);
|
||||
|
||||
#if _DEBUG
|
||||
int nLen = strlen( g_sCurrentDir );
|
||||
if( g_sCurrentDir[ nLen - 1 ] != '\\' )
|
||||
{
|
||||
g_sCurrentDir[ nLen - 1 ] = '\\';
|
||||
g_sCurrentDir[ nLen ] = 0;
|
||||
g_sCurrentDir[ nLen + 0 ] = '\\';
|
||||
g_sCurrentDir[ nLen + 1 ] = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
SetCurrentDirectory(g_sCurrentDir);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user