Squashing file write bugs

This commit is contained in:
Krzosa Karol
2022-06-15 12:11:34 +02:00
parent 69362ba37a
commit 8b470fbf34
7 changed files with 41 additions and 32 deletions

View File

@@ -39,6 +39,6 @@ release :: (m: *Memory)
m.commit = 0
m.reserve = 0
print :: (string: String)
print :: (string: String16)
handle := GetStdHandle(STD_OUTPUT_HANDLE)
WriteConsoleA(handle, &string[0]->*void, length_of(string)->DWORD, 0, 0)
WriteConsoleW(handle, (string.str)->*void, string.len->DWORD, 0, 0)