Fix fork() on Windows after chdir()

This commit is contained in:
Justine Tunney 2021-01-29 23:19:29 -08:00
parent 21e1023d28
commit b8d26e2418
7 changed files with 93 additions and 4 deletions

View file

@ -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

View file

@ -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