cosmopolitan/libc/nt/kernel32/GlobalAlloc.s
Justine Tunney 34b68f1945 Make mappings unlimited on NT
This change might also fix fork() in certain cases on NT.
2021-09-04 13:20:47 -07:00

12 lines
233 B
ArmAsm

.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_GlobalAlloc,GlobalAlloc,0
.text.windows
GlobalAlloc:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GlobalAlloc(%rip),%rax
jmp __sysv2nt
.endfn GlobalAlloc,globl
.previous