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
83bcb752
Commit
83bcb752
authored
Jan 06, 2024
by
Fabian Maurer
Committed by
Alexandre Julliard
Jan 17, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: In fpScheduleJob leave critical section in error case (Coverity).
parent
0459802a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
provider.c
dlls/localspl/provider.c
+5
-5
No files found.
dlls/localspl/provider.c
View file @
83bcb752
...
...
@@ -3783,7 +3783,7 @@ static BOOL WINAPI fpScheduleJob(HANDLE hprinter, DWORD job_id)
{
printer_t
*
printer
=
(
printer_t
*
)
hprinter
;
WCHAR
output
[
1024
],
name
[
1024
],
*
datatype
;
BOOL
datatype_valid
=
FALSE
,
ret
=
TRU
E
;
BOOL
datatype_valid
=
FALSE
,
ret
=
FALS
E
;
PRINTPROCESSOROPENDATA
pp_data
;
const
WCHAR
*
port_name
,
*
port
;
job_info_t
*
job
;
...
...
@@ -3852,8 +3852,7 @@ static BOOL WINAPI fpScheduleJob(HANDLE hprinter, DWORD job_id)
if
(
!
datatype_valid
)
{
pp
=
print_proc_load
(
printer
->
print_proc
);
if
(
!
pp
)
return
FALSE
;
if
(
!
pp
)
goto
cleanup
;
datatype_valid
=
print_proc_check_datatype
(
pp
,
datatype
);
}
...
...
@@ -3863,7 +3862,7 @@ static BOOL WINAPI fpScheduleJob(HANDLE hprinter, DWORD job_id)
WARN
(
"%s datatype not supported by %s
\n
"
,
debugstr_w
(
datatype
),
debugstr_w
(
printer
->
info
->
print_proc
));
print_proc_unload
(
pp
);
return
FALSE
;
goto
cleanup
;
}
swprintf
(
name
,
ARRAY_SIZE
(
name
),
L"%s, Port"
,
port_name
);
...
...
@@ -3879,7 +3878,7 @@ static BOOL WINAPI fpScheduleJob(HANDLE hprinter, DWORD job_id)
{
WARN
(
"OpenPrintProcessor failed %ld
\n
"
,
GetLastError
());
print_proc_unload
(
pp
);
return
FALSE
;
goto
cleanup
;
}
swprintf
(
name
,
ARRAY_SIZE
(
name
),
L"%s, Job %d"
,
printer
->
name
,
job
->
id
);
...
...
@@ -3892,6 +3891,7 @@ static BOOL WINAPI fpScheduleJob(HANDLE hprinter, DWORD job_id)
if
(
!
(
printer
->
info
->
attributes
&
PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS
))
DeleteFileW
(
job
->
filename
);
free_job
(
job
);
cleanup:
LeaveCriticalSection
(
&
printer
->
info
->
jobs_cs
);
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