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