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
c16f0644
Commit
c16f0644
authored
May 02, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
May 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedevice: Do not omit mandatory argument for VirtualProtect.
parent
64ee8a4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
device.c
programs/winedevice/device.c
+2
-2
No files found.
programs/winedevice/device.c
View file @
c16f0644
...
...
@@ -98,14 +98,14 @@ static HMODULE load_driver_module( const WCHAR *name )
VirtualProtect
(
page
,
info
.
PageSize
,
PAGE_EXECUTE_READWRITE
,
&
old
);
rel
=
LdrProcessRelocationBlock
(
page
,
(
rel
->
SizeOfBlock
-
sizeof
(
*
rel
))
/
sizeof
(
USHORT
),
(
USHORT
*
)(
rel
+
1
),
delta
);
if
(
old
!=
PAGE_EXECUTE_READWRITE
)
VirtualProtect
(
page
,
info
.
PageSize
,
old
,
NULL
);
if
(
old
!=
PAGE_EXECUTE_READWRITE
)
VirtualProtect
(
page
,
info
.
PageSize
,
old
,
&
old
);
if
(
!
rel
)
goto
error
;
}
/* make sure we don't try again */
size
=
FIELD_OFFSET
(
IMAGE_NT_HEADERS
,
OptionalHeader
)
+
nt
->
FileHeader
.
SizeOfOptionalHeader
;
VirtualProtect
(
nt
,
size
,
PAGE_READWRITE
,
&
old
);
nt
->
OptionalHeader
.
DataDirectory
[
IMAGE_DIRECTORY_ENTRY_BASERELOC
].
VirtualAddress
=
0
;
VirtualProtect
(
nt
,
size
,
old
,
NULL
);
VirtualProtect
(
nt
,
size
,
old
,
&
old
);
}
}
...
...
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