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
278b3f0d
Commit
278b3f0d
authored
Nov 07, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed 0/-1 mixup for indicating no mapping handle.
parent
0c247ec7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
virtual.c
memory/virtual.c
+3
-3
No files found.
memory/virtual.c
View file @
278b3f0d
...
...
@@ -237,7 +237,7 @@ static FILE_VIEW *VIRTUAL_CreateView( UINT base, UINT size, UINT flags,
/* Duplicate the mapping handle */
if
(
(
view
->
mapping
!=
-
1
)
&&
if
(
view
->
mapping
&&
!
DuplicateHandle
(
GetCurrentProcess
(),
view
->
mapping
,
GetCurrentProcess
(),
&
view
->
mapping
,
0
,
FALSE
,
DUPLICATE_SAME_ACCESS
))
...
...
@@ -288,7 +288,7 @@ static void VIRTUAL_DeleteView(
if
(
view
->
prev
)
view
->
prev
->
next
=
view
->
next
;
else
VIRTUAL_FirstView
=
view
->
next
;
LeaveCriticalSection
(
&
csVirtual
);
if
(
view
->
mapping
)
CloseHandl
e
(
view
->
mapping
);
if
(
view
->
mapping
)
NtClos
e
(
view
->
mapping
);
free
(
view
);
}
...
...
@@ -844,7 +844,7 @@ LPVOID WINAPI VirtualAlloc(
return
NULL
;
}
if
(
!
(
view
=
VIRTUAL_CreateView
(
ptr
,
size
,
(
type
&
MEM_SYSTEM
)
?
VFLAG_SYSTEM
:
0
,
vprot
,
-
1
)))
VFLAG_SYSTEM
:
0
,
vprot
,
0
)))
{
munmap
(
(
void
*
)
ptr
,
size
);
SetLastError
(
ERROR_OUTOFMEMORY
);
...
...
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