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