mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Native_fopen for Win32 had incorrect arguments.
This commit is contained in:
committed by
Christoffer Lerno
parent
c7d90baad1
commit
26ee4babcf
@@ -10,7 +10,7 @@ fn void*! native_fopen(String filename, String mode) @inline
|
||||
@pool()
|
||||
{
|
||||
$if env::WIN32:
|
||||
void* file = libc::_wfopen(filename.to_temp_wstring(), filename.to_temp_wstring())!;
|
||||
void* file = libc::_wfopen(filename.to_temp_wstring(), mode.to_temp_wstring())!;
|
||||
$else
|
||||
void* file = libc::fopen(filename.zstr_tcopy(), mode.zstr_tcopy());
|
||||
$endif
|
||||
|
||||
Reference in New Issue
Block a user