fix environment on winnt
parent
0be2e17246
commit
e5b72af403
|
@ -6,8 +6,10 @@ alien.c-types sequences windows.errors io.streams.memory
|
|||
io.encodings io ;
|
||||
IN: environment.winnt
|
||||
|
||||
<< "TCHAR" require-c-type-arrays >>
|
||||
|
||||
M: winnt os-env ( key -- value )
|
||||
MAX_UNICODE_PATH "TCHAR" <c-array>
|
||||
MAX_UNICODE_PATH "TCHAR" <c-type-array>
|
||||
[ dup length GetEnvironmentVariable ] keep over 0 = [
|
||||
2drop f
|
||||
] [
|
||||
|
|
Loading…
Reference in New Issue