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
01b4286f
Commit
01b4286f
authored
Oct 08, 2022
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sapi: Store the token id in ISpObjectToken SetId.
parent
fa591d3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
token.c
dlls/sapi/token.c
+4
-0
No files found.
dlls/sapi/token.c
View file @
01b4286f
...
...
@@ -784,6 +784,7 @@ struct object_token
LONG
ref
;
HKEY
token_key
;
WCHAR
*
token_id
;
};
static
struct
object_token
*
impl_from_ISpObjectToken
(
ISpObjectToken
*
iface
)
...
...
@@ -831,6 +832,7 @@ static ULONG WINAPI token_Release( ISpObjectToken *iface )
if
(
!
ref
)
{
if
(
This
->
token_key
)
RegCloseKey
(
This
->
token_key
);
free
(
This
->
token_id
);
heap_free
(
This
);
}
...
...
@@ -950,6 +952,7 @@ static HRESULT WINAPI token_SetId( ISpObjectToken *iface,
if
(
res
)
return
SPERR_NOT_FOUND
;
This
->
token_key
=
key
;
This
->
token_id
=
wcsdup
(
token_id
);
return
S_OK
;
}
...
...
@@ -1075,6 +1078,7 @@ HRESULT token_create( IUnknown *outer, REFIID iid, void **obj )
This
->
ref
=
1
;
This
->
token_key
=
NULL
;
This
->
token_id
=
NULL
;
hr
=
ISpObjectToken_QueryInterface
(
&
This
->
ISpObjectToken_iface
,
iid
,
obj
);
...
...
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