Skip to content

Commit

Permalink
Use correct variable for protection flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jun 13, 2014
1 parent d85aa31 commit 0bdfcc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/win32/mmap.c
Expand Up @@ -24,7 +24,7 @@ static int page_mode_to_prot_mode(int page_mode) {
void *MVM_platform_alloc_pages(size_t size, int page_mode)
{
int prot_mode = page_mode_to_prot_mode(page_mode);
void * allocd = VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, page_mode);
void * allocd = VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, prot_mode);
if (!allocd)
MVM_panic(1, "MVM_platform_alloc_pages failed: %d", GetLastError());
return allocd;
Expand Down

0 comments on commit 0bdfcc5

Please sign in to comment.