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
a17bb304
Commit
a17bb304
authored
Aug 18, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64win: Fix NtGdiDdDDICreateDevice thunk.
parent
50bbaf9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
gdi.c
dlls/wow64win/gdi.c
+10
-13
No files found.
dlls/wow64win/gdi.c
View file @
a17bb304
...
...
@@ -239,23 +239,20 @@ NTSTATUS WINAPI wow64_NtGdiDdDDICreateDevice( UINT *args )
UINT
PatchLocationListSize
;
}
*
desc32
=
get_ptr
(
&
args
);
D3DKMT_CREATEDEVICE
desc
=
{
{
desc32
->
hAdapter
},
desc32
->
Flags
};
D3DKMT_CREATEDEVICE
desc
;
NTSTATUS
status
;
if
(
!
desc32
)
return
STATUS_INVALID_PARAMETER
;
desc
.
hAdapter
=
desc32
->
hAdapter
;
desc
.
Flags
=
desc32
->
Flags
;
desc
.
pCommandBuffer
=
UlongToPtr
(
desc32
->
pCommandBuffer
);
desc
.
CommandBufferSize
=
desc32
->
CommandBufferSize
;
desc
.
pAllocationList
=
UlongToPtr
(
desc32
->
pAllocationList
);
desc
.
AllocationListSize
=
desc32
->
AllocationListSize
;
desc
.
pPatchLocationList
=
UlongToPtr
(
desc32
->
pPatchLocationList
);
desc
.
PatchLocationListSize
=
desc32
->
PatchLocationListSize
;
if
(
!
(
status
=
NtGdiDdDDICreateDevice
(
&
desc
)))
{
desc32
->
hDevice
=
desc
.
hDevice
;
desc32
->
pCommandBuffer
=
PtrToUlong
(
desc
.
pCommandBuffer
);
desc32
->
CommandBufferSize
=
desc
.
CommandBufferSize
;
desc32
->
pAllocationList
=
PtrToUlong
(
desc
.
pAllocationList
);
desc32
->
AllocationListSize
=
desc
.
AllocationListSize
;
desc32
->
pPatchLocationList
=
PtrToUlong
(
desc
.
pPatchLocationList
);
desc32
->
PatchLocationListSize
=
desc
.
PatchLocationListSize
;
}
return
status
;
}
...
...
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