diff options
Diffstat (limited to 'com32/mboot/apm.c')
-rw-r--r-- | com32/mboot/apm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/mboot/apm.c b/com32/mboot/apm.c index 3f48af7c..82b6b608 100644 --- a/com32/mboot/apm.c +++ b/com32/mboot/apm.c @@ -50,6 +50,7 @@ void mboot_apm(void) return; /* 32 bits not supported */ /* Disconnect first, just in case */ + memset(&ireg, 0, sizeof ireg); ireg.eax.b[0] = 0x04; __intcall(0x15, &ireg, &oreg); @@ -68,6 +69,7 @@ void mboot_apm(void) /* Redo the installation check as the 32-bit connect; some BIOSes return different flags this way... */ + memset(&ireg, 0, sizeof ireg); ireg.eax.b[0] = 0x00; __intcall(0x15, &ireg, &oreg); |