aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/gpllib/disk/error.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/com32/gpllib/disk/error.c b/com32/gpllib/disk/error.c
index 469609b2..763dcfdc 100644
--- a/com32/gpllib/disk/error.c
+++ b/com32/gpllib/disk/error.c
@@ -1,3 +1,4 @@
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -119,5 +120,8 @@ void get_error(int status, char** buffer_ptr)
case 0xFF:
strncpy(buffer, "sense operation failed (hard disk)", buffer_size);
break;
+ default:
+ snprintf(buffer, buffer_size, "unknown error 0x%X, buggy bios?", status);
+ break;
}
}