summaryrefslogtreecommitdiff
path: root/src/main-win.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-13 13:54:38 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-13 13:54:38 +0100
commitd9dc4907574b52afc7b5181e9813fd36da2ca201 (patch)
treec61c8cac02d052ef1a4c4f6b7f028ea7b5c13d79 /src/main-win.c
parenta2819d22e68ba4557ffcbfc31b32df11454f8c07 (diff)
Inline safe_calloc() and remove z-virt.c
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;