diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-28 20:16:18 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-28 20:16:18 +0000 |
| commit | e86c990b75bb30f0116430453b42a59317e3fead (patch) | |
| tree | 2645005099bd2cf744299d6a3538408ed5728d39 /core/os_windows.odin | |
| parent | 31aacd5bf435224c7d8f9b19359175d3e6d25660 (diff) | |
Overloaded `free`; 3 dotted ellipsisv0.0.6a
Diffstat (limited to 'core/os_windows.odin')
| -rw-r--r-- | core/os_windows.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os_windows.odin b/core/os_windows.odin index 4127d6242..5cc21d30a 100644 --- a/core/os_windows.odin +++ b/core/os_windows.odin @@ -235,7 +235,7 @@ read_entire_file :: proc(name: string) -> ([]byte, bool) { win32.ReadFile(cast(win32.HANDLE)fd, ^data[total_read], to_read, ^single_read_length, nil); if single_read_length <= 0 { - free(data.data); + free(data); return nil, false; } |