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
40eea7ac
Commit
40eea7ac
authored
Nov 15, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi.exe: Rewrite QueryAbort16 to be independant of gdi32.dll internals.
parent
8e248c06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
25 deletions
+21
-25
gdi16.c
dlls/gdi32/gdi16.c
+21
-0
printdrv16.c
dlls/gdi32/printdrv16.c
+0
-25
No files found.
dlls/gdi32/gdi16.c
View file @
40eea7ac
...
@@ -135,6 +135,27 @@ static struct gdi_thunk* GDI_FindThunk(HDC16 hdc)
...
@@ -135,6 +135,27 @@ static struct gdi_thunk* GDI_FindThunk(HDC16 hdc)
}
}
/**********************************************************************
/**********************************************************************
* QueryAbort (GDI.155)
*
* Calls the app's AbortProc function if avail.
*
* RETURNS
* TRUE if no AbortProc avail or AbortProc wants to continue printing.
* FALSE if AbortProc wants to abort printing.
*/
BOOL16
WINAPI
QueryAbort16
(
HDC16
hdc16
,
INT16
reserved
)
{
struct
gdi_thunk
*
thunk
=
GDI_FindThunk
(
hdc16
);
if
(
!
thunk
)
{
ERR
(
"Invalid hdc 0x%x
\n
"
,
hdc16
);
return
FALSE
;
}
return
GDI_Callback3216
(
thunk
->
pfn16
,
HDC_32
(
hdc16
),
0
);
}
/**********************************************************************
* SetAbortProc (GDI.381)
* SetAbortProc (GDI.381)
*/
*/
INT16
WINAPI
SetAbortProc16
(
HDC16
hdc16
,
ABORTPROC16
abrtprc
)
INT16
WINAPI
SetAbortProc16
(
HDC16
hdc16
,
ABORTPROC16
abrtprc
)
...
...
dlls/gdi32/printdrv16.c
View file @
40eea7ac
...
@@ -57,31 +57,6 @@ static const char DefaultDevMode[] = "Default DevMode";
...
@@ -57,31 +57,6 @@ static const char DefaultDevMode[] = "Default DevMode";
static
const
char
PrinterDriverData
[]
=
"PrinterDriverData"
;
static
const
char
PrinterDriverData
[]
=
"PrinterDriverData"
;
static
const
char
Printers
[]
=
"System
\\
CurrentControlSet
\\
Control
\\
Print
\\
Printers
\\
"
;
static
const
char
Printers
[]
=
"System
\\
CurrentControlSet
\\
Control
\\
Print
\\
Printers
\\
"
;
/**********************************************************************
* QueryAbort (GDI.155)
*
* Calls the app's AbortProc function if avail.
*
* RETURNS
* TRUE if no AbortProc avail or AbortProc wants to continue printing.
* FALSE if AbortProc wants to abort printing.
*/
BOOL16
WINAPI
QueryAbort16
(
HDC16
hdc16
,
INT16
reserved
)
{
BOOL
ret
=
TRUE
;
HDC
hdc
=
HDC_32
(
hdc16
);
DC
*
dc
=
get_dc_ptr
(
hdc
);
if
(
!
dc
)
{
ERR
(
"Invalid hdc %p
\n
"
,
hdc
);
return
FALSE
;
}
if
(
dc
->
pAbortProc
)
ret
=
dc
->
pAbortProc
(
hdc
,
0
);
release_dc_ptr
(
dc
);
return
ret
;
}
/****************** misc. printer related functions */
/****************** misc. printer related functions */
/*
/*
...
...
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