Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ac36f950
Commit
ac36f950
authored
Nov 06, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable address space limit check on non-i386 platforms.
parent
add72176
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
virtual.c
dlls/ntdll/virtual.c
+5
-4
No files found.
dlls/ntdll/virtual.c
View file @
ac36f950
...
...
@@ -100,15 +100,15 @@ static CRITICAL_SECTION csVirtual = CRITICAL_SECTION_INIT("csVirtual");
# define page_mask 0xfff
# define page_shift 12
# define page_size 0x1000
# define ADDRESS_SPACE_LIMIT ((void *)0xc0000000)
/* top of the user address space */
#else
static
UINT
page_shift
;
static
UINT
page_mask
;
static
UINT
page_size
;
# define ADDRESS_SPACE_LIMIT 0
/* no limit needed on other platforms */
#endif
/* __i386__ */
#define granularity_mask 0xffff
/* Allocation granularity (usually 64k) */
#define ADDRESS_SPACE_LIMIT ((void *)0xc0000000)
/* top of the user address space */
#define ROUND_ADDR(addr,mask) \
((void *)((UINT_PTR)(addr) & ~(mask)))
...
...
@@ -983,7 +983,7 @@ NTSTATUS WINAPI NtAllocateVirtualMemory( HANDLE process, PVOID *ret, PVOID addr,
/* disallow low 64k, wrap-around and kernel space */
if
(((
char
*
)
base
<=
(
char
*
)
granularity_mask
)
||
((
char
*
)
base
+
size
<
(
char
*
)
base
)
||
(
(
char
*
)
base
+
size
>
(
char
*
)
ADDRESS_SPACE_LIMIT
))
(
ADDRESS_SPACE_LIMIT
&&
((
char
*
)
base
+
size
>
(
char
*
)
ADDRESS_SPACE_LIMIT
)
))
return
STATUS_INVALID_PARAMETER
;
}
else
...
...
@@ -1178,7 +1178,8 @@ NTSTATUS WINAPI NtQueryVirtualMemory( HANDLE process, LPCVOID addr,
MEMORY_BASIC_INFORMATION
*
info
=
buffer
;
if
(
info_class
!=
MemoryBasicInformation
)
return
STATUS_INVALID_INFO_CLASS
;
if
(
addr
>=
ADDRESS_SPACE_LIMIT
)
return
STATUS_WORKING_SET_LIMIT_RANGE
;
/* FIXME */
if
(
ADDRESS_SPACE_LIMIT
&&
addr
>=
ADDRESS_SPACE_LIMIT
)
return
STATUS_WORKING_SET_LIMIT_RANGE
;
/* FIXME */
if
(
!
is_current_process
(
process
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment