[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] cdi: Rückgabewert von cdi_bios_int10 gefixt



! cdi: vm86_int gibt heutzutage 0/-errno zurück statt true/false

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/modules/cdi/lib/bios.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/cdi/lib/bios.c b/src/modules/cdi/lib/bios.c
index 8315755..a76b23f 100644
--- a/src/modules/cdi/lib/bios.c
+++ b/src/modules/cdi/lib/bios.c
@@ -39,8 +39,8 @@ int cdi_bios_int10(struct cdi_bios_registers *registers, cdi_list_t memory)
         meminfo[1 + i * 3 + 1] = (uint32_t)memarea->src;
         meminfo[1 + i * 3 + 2] = memarea->size;
     }
-    
+
     // BIOS aufrufen
-    return vm86_int((vm86_regs_t*)registers, meminfo) - 1;
+    return vm86_int((vm86_regs_t*)registers, meminfo) == 0 ? 0 : -1;
 }
 
-- 
1.6.0.2