mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +00:00
Fix fork() on Windows after chdir()
This commit is contained in:
parent
21e1023d28
commit
b8d26e2418
7 changed files with 93 additions and 4 deletions
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_GetFinalPathNameByHandleA,GetFinalPathNameByHandleA,0
|
||||
|
||||
.text.windows
|
||||
GetFinalPathNameByHandleA:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GetFinalPathNameByHandleA(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn GetFinalPathNameByHandleA,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_GetFinalPathNameByHandleW,GetFinalPathNameByHandleW,0
|
||||
|
||||
.text.windows
|
||||
GetFinalPathNameByHandle:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GetFinalPathNameByHandleW(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn GetFinalPathNameByHandle,globl
|
||||
.previous
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue