diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-13 13:54:38 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-13 13:54:38 +0100 |
commit | d9dc4907574b52afc7b5181e9813fd36da2ca201 (patch) | |
tree | c61c8cac02d052ef1a4c4f6b7f028ea7b5c13d79 /src/main-win.c | |
parent | a2819d22e68ba4557ffcbfc31b32df11454f8c07 (diff) |
Inline safe_calloc() and remove z-virt.c
Diffstat (limited to 'src/main-win.c')
-rw-r--r-- | src/main-win.c | 6 |
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; |