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
90560498
Commit
90560498
authored
Oct 30, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdh: Fix two missing LeaveCriticalSection() on error paths.
parent
1c7c9de4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
pdh_main.c
dlls/pdh/pdh_main.c
+10
-2
No files found.
dlls/pdh/pdh_main.c
View file @
90560498
...
...
@@ -407,7 +407,11 @@ PDH_STATUS WINAPI PdhCloseQuery( PDH_HQUERY handle )
WaitForSingleObject
(
thread
,
INFINITE
);
EnterCriticalSection
(
&
pdh_handle_cs
);
if
(
query
->
magic
!=
PDH_MAGIC_QUERY
)
return
ERROR_SUCCESS
;
if
(
query
->
magic
!=
PDH_MAGIC_QUERY
)
{
LeaveCriticalSection
(
&
pdh_handle_cs
);
return
ERROR_SUCCESS
;
}
CloseHandle
(
query
->
stop
);
CloseHandle
(
query
->
thread
);
query
->
thread
=
NULL
;
...
...
@@ -530,7 +534,11 @@ PDH_STATUS WINAPI PdhCollectQueryDataEx( PDH_HQUERY handle, DWORD interval, HAND
WaitForSingleObject
(
thread
,
INFINITE
);
EnterCriticalSection
(
&
pdh_handle_cs
);
if
(
query
->
magic
!=
PDH_MAGIC_QUERY
)
return
PDH_INVALID_HANDLE
;
if
(
query
->
magic
!=
PDH_MAGIC_QUERY
)
{
LeaveCriticalSection
(
&
pdh_handle_cs
);
return
PDH_INVALID_HANDLE
;
}
CloseHandle
(
query
->
thread
);
query
->
thread
=
NULL
;
}
...
...
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