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
6d376641
Commit
6d376641
authored
Feb 21, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmm.vxd: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7f44de63
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
Makefile.in
dlls/vmm.vxd/Makefile.in
+0
-1
vmm.c
dlls/vmm.vxd/vmm.c
+10
-10
No files found.
dlls/vmm.vxd/Makefile.in
View file @
6d376641
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
vmm.vxd
MODULE
=
vmm.vxd
C_SRCS
=
\
C_SRCS
=
\
...
...
dlls/vmm.vxd/vmm.c
View file @
6d376641
...
@@ -144,7 +144,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
...
@@ -144,7 +144,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
ULONG
npages
=
stack32_pop
(
context
);
ULONG
npages
=
stack32_pop
(
context
);
ULONG
flags
=
stack32_pop
(
context
);
ULONG
flags
=
stack32_pop
(
context
);
TRACE
(
"PageReserve: page: %08
x, npages: %08x, flags: %08
x partial stub!
\n
"
,
TRACE
(
"PageReserve: page: %08
lx, npages: %08lx, flags: %08l
x partial stub!
\n
"
,
page
,
npages
,
flags
);
page
,
npages
,
flags
);
if
(
page
==
PR_SYSTEM
)
{
if
(
page
==
PR_SYSTEM
)
{
...
@@ -175,8 +175,8 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
...
@@ -175,8 +175,8 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
ULONG
pagerdata
=
stack32_pop
(
context
);
ULONG
pagerdata
=
stack32_pop
(
context
);
ULONG
flags
=
stack32_pop
(
context
);
ULONG
flags
=
stack32_pop
(
context
);
TRACE
(
"PageCommit: page: %08
x, npages: %08x, hpd: %08
x pagerdata: "
TRACE
(
"PageCommit: page: %08
lx, npages: %08lx, hpd: %08l
x pagerdata: "
"%08
x, flags: %08
x partial stub
\n
"
,
"%08
lx, flags: %08l
x partial stub
\n
"
,
page
,
npages
,
hpd
,
pagerdata
,
flags
);
page
,
npages
,
hpd
,
pagerdata
,
flags
);
if
(
flags
&
PC_USER
)
if
(
flags
&
PC_USER
)
...
@@ -202,7 +202,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
...
@@ -202,7 +202,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
ULONG
npages
=
stack32_pop
(
context
);
ULONG
npages
=
stack32_pop
(
context
);
ULONG
flags
=
stack32_pop
(
context
);
ULONG
flags
=
stack32_pop
(
context
);
TRACE
(
"PageDecommit: page: %08
x, npages: %08x, flags: %08
x partial stub
\n
"
,
TRACE
(
"PageDecommit: page: %08
lx, npages: %08lx, flags: %08l
x partial stub
\n
"
,
page
,
npages
,
flags
);
page
,
npages
,
flags
);
address
=
(
LPVOID
)(
page
*
page_size
);
address
=
(
LPVOID
)(
page
*
page_size
);
ret
=
VirtualFree
(
address
,
npages
*
page_size
,
MEM_DECOMMIT
);
ret
=
VirtualFree
(
address
,
npages
*
page_size
,
MEM_DECOMMIT
);
...
@@ -223,7 +223,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
...
@@ -223,7 +223,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
ULONG
permand
=
stack32_pop
(
context
);
ULONG
permand
=
stack32_pop
(
context
);
ULONG
permor
=
stack32_pop
(
context
);
ULONG
permor
=
stack32_pop
(
context
);
TRACE
(
"PageModifyPermissions %08
x %08x %08x %08
x partial stub
\n
"
,
TRACE
(
"PageModifyPermissions %08
lx %08lx %08lx %08l
x partial stub
\n
"
,
page
,
npages
,
permand
,
permor
);
page
,
npages
,
permand
,
permor
);
address
=
(
LPVOID
)(
page
*
page_size
);
address
=
(
LPVOID
)(
page
*
page_size
);
...
@@ -264,7 +264,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
...
@@ -264,7 +264,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
ERR
(
"Can't change page permissions for %p
\n
"
,
address
);
ERR
(
"Can't change page permissions for %p
\n
"
,
address
);
return
0xffffffff
;
return
0xffffffff
;
}
}
TRACE
(
"Returning: %08x
\n
"
,
pg_old_perm
);
TRACE
(
"Returning: %08
l
x
\n
"
,
pg_old_perm
);
return
pg_old_perm
;
return
pg_old_perm
;
}
}
...
@@ -274,7 +274,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
...
@@ -274,7 +274,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
LPVOID
hmem
=
(
LPVOID
)
stack32_pop
(
context
);
LPVOID
hmem
=
(
LPVOID
)
stack32_pop
(
context
);
DWORD
flags
=
stack32_pop
(
context
);
DWORD
flags
=
stack32_pop
(
context
);
TRACE
(
"PageFree: hmem: %p, flags: %08x partial stub
\n
"
,
TRACE
(
"PageFree: hmem: %p, flags: %08
l
x partial stub
\n
"
,
hmem
,
flags
);
hmem
,
flags
);
ret
=
VirtualFree
(
hmem
,
0
,
MEM_RELEASE
);
ret
=
VirtualFree
(
hmem
,
0
,
MEM_RELEASE
);
...
@@ -413,7 +413,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
...
@@ -413,7 +413,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
* implementation of this.
* implementation of this.
*/
*/
FIXME
(
"GetDemandPageInfo(%08
x %08
x): stub!
\n
"
,
dinfo
,
flags
);
FIXME
(
"GetDemandPageInfo(%08
lx %08l
x): stub!
\n
"
,
dinfo
,
flags
);
return
0
;
return
0
;
}
}
...
@@ -462,10 +462,10 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
...
@@ -462,10 +462,10 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
default:
default:
if
(
LOWORD
(
service
)
<
N_VMM_SERVICE
)
if
(
LOWORD
(
service
)
<
N_VMM_SERVICE
)
FIXME
(
"Unimplemented service %s (%08x)
\n
"
,
FIXME
(
"Unimplemented service %s (%08
l
x)
\n
"
,
VMM_Service_Name
[
LOWORD
(
service
)],
service
);
VMM_Service_Name
[
LOWORD
(
service
)],
service
);
else
else
FIXME
(
"Unknown service %08x
\n
"
,
service
);
FIXME
(
"Unknown service %08
l
x
\n
"
,
service
);
return
0xffffffff
;
/* FIXME */
return
0xffffffff
;
/* FIXME */
}
}
}
}
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