From 775a488a3688a1ce3157366a368349de32279f8c Mon Sep 17 00:00:00 2001 From: Mark Naughton Date: Fri, 19 May 2023 18:53:43 +0100 Subject: [PATCH] Fix windows write_directory() --- src/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path.cpp b/src/path.cpp index c9887e9ca..de80c9def 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -437,7 +437,7 @@ gb_internal bool write_directory(String path) { } #else gb_internal bool write_directory(String path) { - String16wstr = string_to_string16(heap_allocator(), path); + String16 wstr = string_to_string16(heap_allocator(), path); LPCWSTR wdirectory_name = wstr.text; HANDLE directory = CreateFileW(wdirectory_name,