From b1984207c7979639f118eb3f760dffbf2ff60e4f Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 12 Oct 2018 20:10:33 +0200 Subject: [PATCH] Modified plat_dir_create() to use SHCreateDirectory instead of CreateDirectory - now the emulator should create every level of path that doesn't exist. --- src/win/win.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/win/win.c b/src/win/win.c index cd7fc270d..07ab1647c 100644 --- a/src/win/win.c +++ b/src/win/win.c @@ -8,7 +8,7 @@ * * Platform main support module for Windows. * - * Version: @(#)win.c 1.0.52 2018/07/28 + * Version: @(#)win.c 1.0.53 2018/10/12 * * Authors: Sarah Walker, * Miran Grca, @@ -20,6 +20,7 @@ */ #define UNICODE #include +#include #include #include #include @@ -547,7 +548,8 @@ plat_dir_check(wchar_t *path) int plat_dir_create(wchar_t *path) { - return((int)CreateDirectory(path, NULL)); + // return((int)CreateDirectory(path, NULL)); + return((int)SHCreateDirectory(hwndMain, path)); }