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
7ea4fcb7
Commit
7ea4fcb7
authored
Feb 19, 2009
by
Aurimas Fischer
Committed by
Alexandre Julliard
Feb 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool.drv: Properly free destinations list returned by CUPS.
parent
2b22863f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
info.c
dlls/winspool.drv/info.c
+3
-0
No files found.
dlls/winspool.drv/info.c
View file @
7ea4fcb7
...
...
@@ -460,6 +460,7 @@ static BOOL add_printer_driver(const char *name)
}
#ifdef SONAME_LIBCUPS
static
typeof
(
cupsFreeDests
)
*
pcupsFreeDests
;
static
typeof
(
cupsGetDests
)
*
pcupsGetDests
;
static
typeof
(
cupsGetPPD
)
*
pcupsGetPPD
;
static
typeof
(
cupsPrintFile
)
*
pcupsPrintFile
;
...
...
@@ -486,6 +487,7 @@ static BOOL CUPS_LoadPrinters(void)
p##x = wine_dlsym(cupshandle, #x, NULL,0); \
if (!p##x) return FALSE;
DYNCUPS
(
cupsFreeDests
);
DYNCUPS
(
cupsGetPPD
);
DYNCUPS
(
cupsGetDests
);
DYNCUPS
(
cupsPrintFile
);
...
...
@@ -566,6 +568,7 @@ static BOOL CUPS_LoadPrinters(void)
}
if
(
hadprinter
&
!
haddefault
)
WINSPOOL_SetDefaultPrinter
(
dests
[
0
].
name
,
dests
[
0
].
name
,
TRUE
);
pcupsFreeDests
(
nrofdests
,
dests
);
RegCloseKey
(
hkeyPrinters
);
return
hadprinter
;
}
...
...
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