From: Toni Wilen Date: Wed, 28 Nov 2018 19:56:50 +0000 (+0200) Subject: Fix incorrect path restored from statefile in certain situations. X-Git-Tag: 4100~16 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=add15738b9e1d8773c888ed7e6f4b6b15751f0af;p=francis%2Fwinuae.git Fix incorrect path restored from statefile in certain situations. --- diff --git a/savestate.cpp b/savestate.cpp index bf4ff489..e1889adf 100644 --- a/savestate.cpp +++ b/savestate.cpp @@ -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)) {