Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c75d0cdc
Commit
c75d0cdc
authored
Dec 08, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Dec 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Don't worry if an HGLOBAL passed to printdlg is already locked.
parent
fa1d997d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
printdlg.c
dlls/commdlg/printdlg.c
+0
-16
No files found.
dlls/commdlg/printdlg.c
View file @
c75d0cdc
...
...
@@ -2096,14 +2096,6 @@ BOOL WINAPI PrintDlgA(LPPRINTDLGA lppd)
lppd
->
hDevMode
=
GlobalAlloc
(
GMEM_MOVEABLE
,
lpdm
->
dmSize
+
lpdm
->
dmDriverExtra
);
}
else
{
WORD
locks
;
if
((
locks
=
(
GlobalFlags
(
lppd
->
hDevMode
)
&
GMEM_LOCKCOUNT
)))
{
WARN
(
"hDevMode has %d locks on it. Unlocking it now
\n
"
,
locks
);
while
(
locks
--
)
{
GlobalUnlock
(
lppd
->
hDevMode
);
TRACE
(
"Now got %d locks
\n
"
,
locks
);
}
}
lppd
->
hDevMode
=
GlobalReAlloc
(
lppd
->
hDevMode
,
lpdm
->
dmSize
+
lpdm
->
dmDriverExtra
,
GMEM_MOVEABLE
);
...
...
@@ -2111,14 +2103,6 @@ BOOL WINAPI PrintDlgA(LPPRINTDLGA lppd)
lpdmReturn
=
GlobalLock
(
lppd
->
hDevMode
);
memcpy
(
lpdmReturn
,
lpdm
,
lpdm
->
dmSize
+
lpdm
->
dmDriverExtra
);
if
(
lppd
->
hDevNames
!=
0
)
{
WORD
locks
;
if
((
locks
=
(
GlobalFlags
(
lppd
->
hDevNames
)
&
GMEM_LOCKCOUNT
)))
{
WARN
(
"hDevNames has %d locks on it. Unlocking it now
\n
"
,
locks
);
while
(
locks
--
)
GlobalUnlock
(
lppd
->
hDevNames
);
}
}
PRINTDLG_CreateDevNames
(
&
(
lppd
->
hDevNames
),
di
->
pDriverPath
,
pi
->
pPrinterName
,
...
...
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