diff options
| author | Mark Naughton <mark@marknaughton.com> | 2023-05-19 18:53:43 +0100 |
|---|---|---|
| committer | Mark Naughton <mark@marknaughton.com> | 2023-05-19 18:53:43 +0100 |
| commit | 775a488a3688a1ce3157366a368349de32279f8c (patch) | |
| tree | d74320923b11d819b730efb1f4f9d15e9817ca00 /src/path.cpp | |
| parent | 018904f0ec59244645187b72f01bedcf716ab40c (diff) | |
Fix windows write_directory()
Diffstat (limited to 'src/path.cpp')
| -rw-r--r-- | src/path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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,
|