mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 15:17:50 +00:00
Change SetCurrentImageDir() to return true/false
This commit is contained in:
+5
-2
@@ -545,7 +545,7 @@ void LoadConfiguration(void)
|
||||
|
||||
//===========================================================================
|
||||
|
||||
void SetCurrentImageDir(const char* pszImageDir)
|
||||
bool SetCurrentImageDir(const char* pszImageDir)
|
||||
{
|
||||
strcpy(g_sCurrentDir, pszImageDir);
|
||||
|
||||
@@ -556,7 +556,10 @@ void SetCurrentImageDir(const char* pszImageDir)
|
||||
g_sCurrentDir[ nLen + 1 ] = 0;
|
||||
}
|
||||
|
||||
SetCurrentDirectory(g_sCurrentDir);
|
||||
if( SetCurrentDirectory(g_sCurrentDir) )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user