]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix incorrect path restored from statefile in certain situations.
authorToni Wilen <twilen@winuae.net>
Wed, 28 Nov 2018 19:56:50 +0000 (21:56 +0200)
committerToni Wilen <twilen@winuae.net>
Wed, 28 Nov 2018 19:56:50 +0000 (21:56 +0200)
savestate.cpp

index bf4ff4891a64de8c3884cdfd1e93148833cde929..e1889adfa30dcd658665cf40a0490b945fc41dad 100644 (file)
@@ -291,6 +291,7 @@ static TCHAR *state_resolve_path(TCHAR *s, int type, bool newmode)
                        xfree(s);
                        return my_strdup(tmp);
                }
+               getfilepart(tmp, sizeof tmp / sizeof(TCHAR), s);
        } else {
                getfilepart(tmp, sizeof tmp / sizeof(TCHAR), s);
                if (state_path_exists(tmp, type)) {