os2: fix wiping results with temp allocator guard
This commit is contained in:
1 parent
7474db6a34
commit
bd808f9ec6
15 files changed
+25
-38
No files matched your search
@@ -8,8 +8,7 @@ _lookup_env :: proc(key: string, allocator: runtime.Allocator) -> (value: string
|
||||
if key == "" {
|
||||
return
|
||||
}
|
||||
assert(!is_temp(allocator))
|
||||
TEMP_ALLOCATOR_GUARD()
|
||||
TEMP_ALLOCATOR_GUARD(ignore=is_temp(allocator))
|
||||
wkey, _ := win32_utf8_to_wstring(key, temp_allocator())
|
||||
|
||||
n := win32.GetEnvironmentVariableW(wkey, nil, 0)
|
||||
|
||||
Reference in new issue
Block a user