cosmopolitan/libc/nt/kernel32/LockResource.s
Justine Tunney 0e85b136ae Fix Windows 7 support (#19)
This change pays off technical debt with the function -> DLL mappings in
libc/nt/master.sh, which was originally defined based on binary analysis
on Windows 10. It's now been updated so the kernel32/kernelbase/advapi32
imports should be exactly as they are written, on the MSDN documentation
and that wouldn't have been easy without Geoff Chappell's work thank him

https://www.geoffchappell.com/studies/windows/win32/index.htm
2020-12-28 13:52:02 -08:00

15 lines
261 B
ArmAsm

.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_LockResource,LockResource,0
.text.windows
LockResource:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_LockResource(%rip)
leave
ret
.endfn LockResource,globl
.previous