diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-09-20 13:36:40 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-09-20 13:36:40 +0000 |
| commit | 3aa6ae9fd862cc04ce717c38984226381647bdc9 (patch) | |
| tree | 5e2fe8f08d37fa43487de6b500da5395794b9d81 /win32 | |
| parent | a9919e071277c735e4747f5dec1b4376f205cc1b (diff) | |
| download | pcsxr-3aa6ae9fd862cc04ce717c38984226381647bdc9.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@30152 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/glue/sys/mman.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/glue/sys/mman.h b/win32/glue/sys/mman.h index a803408a..35e8cd24 100644 --- a/win32/glue/sys/mman.h +++ b/win32/glue/sys/mman.h @@ -13,8 +13,8 @@ #include <stdlib.h>
#define mmap(start, length, prot, flags, fd, offset) \
- ((unsigned char *)malloc(length))
+ ((unsigned char *)VirtualAlloc(NULL, (length), MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE))
-#define munmap(start, length) do { free(start); } while (0)
+#define munmap(start, length) do { VirtualFree((start), (length), MEM_RELEASE); } while (0)
#endif
|
