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
c7d33e1d
Commit
c7d33e1d
authored
Feb 01, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add support for 16-bit QUERYESCSUPPORT queries.
parent
7b330516
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
driver.c
dlls/gdi32/driver.c
+5
-3
escape.c
dlls/wineps.drv/escape.c
+6
-3
init.c
dlls/winex11.drv/init.c
+1
-1
No files found.
dlls/gdi32/driver.c
View file @
c7d33e1d
...
...
@@ -1101,9 +1101,11 @@ INT WINAPI Escape( HDC hdc, INT escape, INT in_count, LPCSTR in_data, LPVOID out
case
QUERYESCSUPPORT
:
{
const
INT
*
ptr
=
(
const
INT
*
)
in_data
;
if
(
in_count
<
sizeof
(
INT
))
return
0
;
switch
(
*
ptr
)
DWORD
code
;
if
(
in_count
<
sizeof
(
SHORT
))
return
0
;
code
=
(
in_count
<
sizeof
(
DWORD
))
?
*
(
const
USHORT
*
)
in_data
:
*
(
const
DWORD
*
)
in_data
;
switch
(
code
)
{
case
ABORTDOC
:
case
ENDDOC
:
...
...
dlls/wineps.drv/escape.c
View file @
c7d33e1d
...
...
@@ -66,15 +66,18 @@ INT PSDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data,
{
PSDRV_PDEVICE
*
physDev
=
get_psdrv_dev
(
dev
);
TRACE
(
"%p,%d,%d,%p,%d,%p
\n
"
,
dev
->
hdc
,
nEscape
,
cbInput
,
in_data
,
cbOutput
,
out_data
);
switch
(
nEscape
)
{
case
QUERYESCSUPPORT
:
if
(
cbInput
<
sizeof
(
IN
T
))
if
(
cbInput
<
sizeof
(
SHOR
T
))
{
WARN
(
"cbInput < sizeof(
IN
T) (=%d) for QUERYESCSUPPORT
\n
"
,
cbInput
);
WARN
(
"cbInput < sizeof(
SHOR
T) (=%d) for QUERYESCSUPPORT
\n
"
,
cbInput
);
return
0
;
}
else
{
UINT
num
=
*
(
const
UINT
*
)
in_data
;
DWORD
num
=
(
cbInput
<
sizeof
(
DWORD
))
?
*
(
const
USHORT
*
)
in_data
:
*
(
const
DWORD
*
)
in_data
;
TRACE
(
"QUERYESCSUPPORT for %d
\n
"
,
num
);
switch
(
num
)
{
...
...
dlls/winex11.drv/init.c
View file @
c7d33e1d
...
...
@@ -316,7 +316,7 @@ static INT X11DRV_ExtEscape( PHYSDEV dev, INT escape, INT in_count, LPCVOID in_d
switch
(
escape
)
{
case
QUERYESCSUPPORT
:
if
(
in_data
)
if
(
in_data
&&
in_count
>=
sizeof
(
DWORD
)
)
{
switch
(
*
(
const
INT
*
)
in_data
)
{
...
...
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