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
007833f1
Commit
007833f1
authored
Jan 20, 2008
by
Christoph von Wittich
Committed by
Alexandre Julliard
Jan 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix process token leak.
parent
0acfe688
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
registry.c
dlls/msi/registry.c
+7
-3
No files found.
dlls/msi/registry.c
View file @
007833f1
...
@@ -478,13 +478,17 @@ static UINT get_user_sid(LPWSTR *usersid)
...
@@ -478,13 +478,17 @@ static UINT get_user_sid(LPWSTR *usersid)
return
ERROR_FUNCTION_FAILED
;
return
ERROR_FUNCTION_FAILED
;
size
=
sizeof
(
buf
);
size
=
sizeof
(
buf
);
if
(
!
GetTokenInformation
(
token
,
TokenUser
,
(
void
*
)
buf
,
size
,
&
size
))
if
(
!
GetTokenInformation
(
token
,
TokenUser
,
(
void
*
)
buf
,
size
,
&
size
))
{
CloseHandle
(
token
);
return
ERROR_FUNCTION_FAILED
;
return
ERROR_FUNCTION_FAILED
;
}
user
=
(
PTOKEN_USER
)
buf
;
user
=
(
PTOKEN_USER
)
buf
;
if
(
!
ConvertSidToStringSidW
(
user
->
User
.
Sid
,
usersid
))
if
(
!
ConvertSidToStringSidW
(
user
->
User
.
Sid
,
usersid
))
{
CloseHandle
(
token
);
return
ERROR_FUNCTION_FAILED
;
return
ERROR_FUNCTION_FAILED
;
}
CloseHandle
(
token
);
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
...
...
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