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

fix: use correct NVMe disk parameter

This commit is contained in:
Abdur-Rahman Mansoor 2024-07-30 13:52:37 -04:00
parent 362a97ab12
commit dd4db45869

View File

@ -53,8 +53,8 @@ proc START c, reason:dword
DEBUGF DBG_INFO, "p_nvme_devices: 0x%x\n", [p_nvme_devices]
.loop:
push ebx
lea esi, [esi + ebx * 4]
push esi ebx
stdcall device_is_compat, esi
test eax, eax
jz @f
@ -63,11 +63,11 @@ proc START c, reason:dword
jz @f
@@:
pop ebx
pop ebx esi
inc ebx
cmp ebx, dword [pcidevs_len]
jne .loop
stdcall add_nvme_disk, dword [p_nvme_devices]
stdcall add_nvme_disk, esi
invoke RegService, my_service, service_proc
ret