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
daaa4c40
Commit
daaa4c40
authored
Jul 07, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Jul 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Fix a leak in DocumentPropertiesA (valgrind).
parent
5acf1510
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
info.c
dlls/winspool.drv/info.c
+6
-5
No files found.
dlls/winspool.drv/info.c
View file @
daaa4c40
...
...
@@ -2361,7 +2361,7 @@ LONG WINAPI DocumentPropertiesA(HWND hWnd,HANDLE hPrinter,
LPSTR
pDeviceName
,
LPDEVMODEA
pDevModeOutput
,
LPDEVMODEA
pDevModeInput
,
DWORD
fMode
)
{
LPSTR
lpName
=
pDeviceName
;
LPSTR
lpName
=
pDeviceName
,
dupname
=
NULL
;
static
CHAR
port
[]
=
"LPT1:"
;
LONG
ret
;
...
...
@@ -2376,7 +2376,7 @@ LONG WINAPI DocumentPropertiesA(HWND hWnd,HANDLE hPrinter,
SetLastError
(
ERROR_INVALID_HANDLE
);
return
-
1
;
}
lpName
=
strdupWtoA
(
lpNameW
);
lpName
=
dupname
=
strdupWtoA
(
lpNameW
);
}
if
(
!
GDI_CallExtDeviceMode16
)
...
...
@@ -2385,14 +2385,15 @@ LONG WINAPI DocumentPropertiesA(HWND hWnd,HANDLE hPrinter,
(
LPCSTR
)
102
);
if
(
!
GDI_CallExtDeviceMode16
)
{
ERR
(
"No CallExtDeviceMode16?
\n
"
);
return
-
1
;
ret
=
-
1
;
goto
end
;
}
}
ret
=
GDI_CallExtDeviceMode16
(
hWnd
,
pDevModeOutput
,
lpName
,
port
,
pDevModeInput
,
NULL
,
fMode
);
if
(
!
pDeviceName
)
HeapFree
(
GetProcessHeap
(),
0
,
lpN
ame
);
end:
HeapFree
(
GetProcessHeap
(),
0
,
dupn
ame
);
return
ret
;
}
...
...
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