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
08c78e07
Commit
08c78e07
authored
Nov 27, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix releasing spy.
parent
d211ddbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
compobj.c
dlls/ole32/compobj.c
+17
-0
No files found.
dlls/ole32/compobj.c
View file @
08c78e07
...
@@ -227,6 +227,7 @@ static void COM_TlsDestroy(void)
...
@@ -227,6 +227,7 @@ static void COM_TlsDestroy(void)
if
(
info
->
apt
)
apartment_release
(
info
->
apt
);
if
(
info
->
apt
)
apartment_release
(
info
->
apt
);
if
(
info
->
errorinfo
)
IErrorInfo_Release
(
info
->
errorinfo
);
if
(
info
->
errorinfo
)
IErrorInfo_Release
(
info
->
errorinfo
);
if
(
info
->
state
)
IUnknown_Release
(
info
->
state
);
if
(
info
->
state
)
IUnknown_Release
(
info
->
state
);
if
(
info
->
spy
)
IUnknown_Release
(
info
->
spy
);
HeapFree
(
GetProcessHeap
(),
0
,
info
);
HeapFree
(
GetProcessHeap
(),
0
,
info
);
NtCurrentTeb
()
->
ReservedForOle
=
NULL
;
NtCurrentTeb
()
->
ReservedForOle
=
NULL
;
}
}
...
@@ -1058,6 +1059,21 @@ HRESULT WINAPI CoRegisterInitializeSpy(IInitializeSpy *spy, ULARGE_INTEGER *cook
...
@@ -1058,6 +1059,21 @@ HRESULT WINAPI CoRegisterInitializeSpy(IInitializeSpy *spy, ULARGE_INTEGER *cook
return
hr
;
return
hr
;
}
}
/******************************************************************************
* CoRevokeInitializeSpy [OLE32.@]
*
* Remove a spy that previously watched CoInitializeEx calls
*
* PARAMS
* cookie [I] The cookie obtained from a previous CoRegisterInitializeSpy call
*
* RETURNS
* Success: S_OK if a spy is removed
* Failure: E_INVALIDARG
*
* SEE ALSO
* CoInitializeEx
*/
HRESULT
WINAPI
CoRevokeInitializeSpy
(
ULARGE_INTEGER
cookie
)
HRESULT
WINAPI
CoRevokeInitializeSpy
(
ULARGE_INTEGER
cookie
)
{
{
struct
oletls
*
info
=
COM_CurrentInfo
();
struct
oletls
*
info
=
COM_CurrentInfo
();
...
@@ -1067,6 +1083,7 @@ HRESULT WINAPI CoRevokeInitializeSpy(ULARGE_INTEGER cookie)
...
@@ -1067,6 +1083,7 @@ HRESULT WINAPI CoRevokeInitializeSpy(ULARGE_INTEGER cookie)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
IUnknown_Release
(
info
->
spy
);
IUnknown_Release
(
info
->
spy
);
info
->
spy
=
NULL
;
return
S_OK
;
return
S_OK
;
}
}
...
...
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