2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2024-09-19 18:11:03 +02:00

fix: shutdown freeze (#5)

This commit is contained in:
Abdur-Rahman Mansoor 2024-08-10 19:27:58 -04:00
parent 24e79cddf0
commit 998d51f9e8

View File

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