From add15738b9e1d8773c888ed7e6f4b6b15751f0af Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Wed, 28 Nov 2018 21:56:50 +0200 Subject: [PATCH] Fix incorrect path restored from statefile in certain situations. --- savestate.cpp | 1 + 1 file changed, 1 insertion(+) 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)) { -- 2.47.3