Add raw_data to replace cases in which &x[0] was used
This commit is contained in:
1 parent
56a52a1d06
commit
86448ee044
15 files changed
+129
-38
No files matched your search
@@ -322,7 +322,7 @@ _alloc_command_line_arguments :: proc() -> []string {
|
||||
|
||||
buf := make([]byte, int(olen));
|
||||
n := win32.WideCharToMultiByte(win32.CP_UTF8, 0, wc_str, -1,
|
||||
&buf[0], olen, nil, nil);
|
||||
raw_data(buf), olen, nil, nil);
|
||||
if n > 0 {
|
||||
n -= 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user