diff options
| author | 2009-04-27 09:18:17 +0000 | |
|---|---|---|
| committer | 2009-04-27 09:18:17 +0000 | |
| commit | 9eb86548bbb847ca2fc01f04fc3a4caa3568aefe (patch) | |
| tree | 7bc8d0a67746251f1ec2dc38d52a1e8da5c381be /src/osd/windows/winalloc.c | |
| parent | 5d4816b66528f07a78ce8470413c524cbb57c799 (diff) | |
Added missing casts and made other tweaks. The entire project
can now be optionally compiled with the C++ compiler (mingw g++
only for the moment; MSVC still has issues).
Diffstat (limited to 'src/osd/windows/winalloc.c')
| -rw-r--r-- | src/osd/windows/winalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/windows/winalloc.c b/src/osd/windows/winalloc.c index 6b7357cbd97..e33f339c33e 100644 --- a/src/osd/windows/winalloc.c +++ b/src/osd/windows/winalloc.c @@ -155,12 +155,12 @@ void *malloc_file_line(size_t size, const char *file, int line) rounded_size = ((size + PAGE_SIZE - 1) / PAGE_SIZE) * PAGE_SIZE; // reserve that much memory, plus two guard pages - page_base = VirtualAlloc(NULL, rounded_size + 2 * PAGE_SIZE, MEM_RESERVE, PAGE_NOACCESS); + page_base = (UINT8 *)VirtualAlloc(NULL, rounded_size + 2 * PAGE_SIZE, MEM_RESERVE, PAGE_NOACCESS); if (page_base == NULL) return NULL; // now allow access to everything but the first and last pages - page_base = VirtualAlloc(page_base + PAGE_SIZE, rounded_size, MEM_COMMIT, PAGE_READWRITE); + page_base = (UINT8 *)VirtualAlloc(page_base + PAGE_SIZE, rounded_size, MEM_COMMIT, PAGE_READWRITE); if (page_base == NULL) return NULL; |
