mirror of
https://github.com/transmission/transmission
synced 2024-12-26 17:47:37 +00:00
(win32) Replace missing symbols with values
This commit is contained in:
parent
c149fc1d27
commit
72b8c7397c
1 changed files with 2 additions and 2 deletions
|
@ -696,7 +696,7 @@ void *mmap (void *ptr, long size, long prot, long type, long handle, long arg) {
|
||||||
ptr = VirtualAlloc (ptr, size,
|
ptr = VirtualAlloc (ptr, size,
|
||||||
MEM_RESERVE | MEM_COMMIT | MEM_TOP_DOWN, PAGE_READWRITE);
|
MEM_RESERVE | MEM_COMMIT | MEM_TOP_DOWN, PAGE_READWRITE);
|
||||||
if (! ptr) {
|
if (! ptr) {
|
||||||
ptr = MMAP_FAILURE;
|
ptr = (void *) -1;
|
||||||
goto mmap_exit;
|
goto mmap_exit;
|
||||||
}
|
}
|
||||||
mmap_exit:
|
mmap_exit:
|
||||||
|
@ -708,7 +708,7 @@ mmap_exit:
|
||||||
long munmap (void *ptr, long size) {
|
long munmap (void *ptr, long size) {
|
||||||
static long g_pagesize;
|
static long g_pagesize;
|
||||||
static long g_regionsize;
|
static long g_regionsize;
|
||||||
int rc = MUNMAP_FAILURE;
|
int rc = -1;
|
||||||
/* Wait for spin lock */
|
/* Wait for spin lock */
|
||||||
slwait (&g_sl);
|
slwait (&g_sl);
|
||||||
/* First time initialization */
|
/* First time initialization */
|
||||||
|
|
Loading…
Reference in a new issue