mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 00:17:16 +00:00
Make path separator OS-dependent (PR #954)
This commit is contained in:
@@ -260,8 +260,8 @@ void GetImageTitle(LPCTSTR pPathname, std::string & pImageName, std::string & pF
|
||||
LPCTSTR startpos = pPathname;
|
||||
|
||||
// imagetitle = <FILENAME.EXT>
|
||||
if (_tcsrchr(startpos, TEXT('\\')))
|
||||
startpos = _tcsrchr(startpos, TEXT('\\'))+1;
|
||||
if (_tcsrchr(startpos, TEXT(PATH_SEPARATOR)))
|
||||
startpos = _tcsrchr(startpos, TEXT(PATH_SEPARATOR))+1;
|
||||
|
||||
_tcsncpy(imagetitle, startpos, MAX_DISK_FULL_NAME);
|
||||
imagetitle[MAX_DISK_FULL_NAME] = 0;
|
||||
|
||||
Reference in New Issue
Block a user