Browse Source

Fix windows write_directory()

Mark Naughton 2 years ago
parent
commit
775a488a36
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/path.cpp

+ 1 - 1
src/path.cpp

@@ -437,7 +437,7 @@ gb_internal bool write_directory(String path) {
 }
 }
 #else
 #else
 gb_internal bool write_directory(String path) {
 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;
 	LPCWSTR wdirectory_name = wstr.text;
 
 
 	HANDLE directory = CreateFileW(wdirectory_name,
 	HANDLE directory = CreateFileW(wdirectory_name,