summaryrefslogtreecommitdiffstats
path: root/loader/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader/win32.c')
-rw-r--r--loader/win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/win32.c b/loader/win32.c
index fbd4d5a4e5..f560ffdfb4 100644
--- a/loader/win32.c
+++ b/loader/win32.c
@@ -358,7 +358,7 @@ void* mreq_private(int size, int to_zero, int type);
void* mreq_private(int size, int to_zero, int type)
{
int nsize = size + sizeof(alloc_header);
- alloc_header* header = (alloc_header* ) malloc(nsize);
+ alloc_header* header = malloc(nsize);
if (!header)
return 0;
if (to_zero)
@@ -4716,7 +4716,7 @@ static HPALETTE WINAPI expCreatePalette(CONST LOGPALETTE *lpgpl)
dbgprintf("CreatePalette(%x) => NULL\n", lpgpl);
i = sizeof(LOGPALETTE)+((lpgpl->palNumEntries-1)*sizeof(PALETTEENTRY));
- test = (HPALETTE)malloc(i);
+ test = malloc(i);
memcpy((void *)test, lpgpl, i);
return test;