mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2025-01-31 01:30:05 +01:00
fix: shutdown freeze (#5)
This commit is contained in:
parent
24e79cddf0
commit
998d51f9e8
@ -39,9 +39,10 @@ struct DISKMEDIAINFO
|
|||||||
capacity dq ?
|
capacity dq ?
|
||||||
ends
|
ends
|
||||||
|
|
||||||
proc START stdcall, reason:dword
|
proc START c, reason:dword, cmdline:dword
|
||||||
local AnythingLoadedSuccessfully db 0
|
local AnythingLoadedSuccessfully db 0
|
||||||
|
|
||||||
|
push esi edi
|
||||||
cmp [reason], DRV_ENTRY
|
cmp [reason], DRV_ENTRY
|
||||||
jne .err
|
jne .err
|
||||||
|
|
||||||
@ -81,11 +82,12 @@ local AnythingLoadedSuccessfully db 0
|
|||||||
cmp [AnythingLoadedSuccessfully], 0
|
cmp [AnythingLoadedSuccessfully], 0
|
||||||
jz .err
|
jz .err
|
||||||
invoke RegService, my_service, service_proc
|
invoke RegService, my_service, service_proc
|
||||||
|
pop edi esi
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.err:
|
.err:
|
||||||
call nvme_cleanup
|
;call nvme_cleanup
|
||||||
xor eax, eax
|
pop edi esi
|
||||||
ret
|
ret
|
||||||
|
|
||||||
endp
|
endp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user