summaryrefslogtreecommitdiff
path: root/src/main-win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main-win.c')
-rw-r--r--src/main-win.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main-win.c b/src/main-win.c
index 9eafe314..368804be 100644
--- a/src/main-win.c
+++ b/src/main-win.c
@@ -954,7 +954,11 @@ static int new_palette(void)
pLogPalSize = sizeof(LOGPALETTE) + (nEntries + 16) * sizeof(PALETTEENTRY);
/* Allocate palette */
- pLogPal = (LPLOGPALETTE) safe_calloc(1, pLogPalSize);
+ pLogPal = (LPLOGPALETTE) calloc(1, pLogPalSize);
+ if (pLogPal == NULL)
+ {
+ abort();
+ }
/* Version */
pLogPal->palVersion = 0x300;