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
6d75522f
Commit
6d75522f
authored
Jan 18, 2009
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jan 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Fix a few handle leaks.
This was pointed out by Christoph von Wittich.
parent
51a04d5b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
0 deletions
+4
-0
install.c
dlls/msi/tests/install.c
+1
-0
msi.c
dlls/msi/tests/msi.c
+1
-0
package.c
dlls/msi/tests/package.c
+1
-0
source.c
dlls/msi/tests/source.c
+1
-0
No files found.
dlls/msi/tests/install.c
View file @
6d75522f
...
...
@@ -1365,6 +1365,7 @@ static void get_user_sid(LPSTR *usersid)
GetTokenInformation
(
token
,
TokenUser
,
buf
,
size
,
&
size
);
user
=
(
PTOKEN_USER
)
buf
;
pConvertSidToStringSidA
(
user
->
User
.
Sid
,
usersid
);
CloseHandle
(
token
);
}
static
BOOL
check_record
(
MSIHANDLE
rec
,
UINT
field
,
LPCSTR
val
)
...
...
dlls/msi/tests/msi.c
View file @
6d75522f
...
...
@@ -525,6 +525,7 @@ static void get_user_sid(LPSTR *usersid)
GetTokenInformation
(
token
,
TokenUser
,
buf
,
size
,
&
size
);
user
=
(
PTOKEN_USER
)
buf
;
pConvertSidToStringSidA
(
user
->
User
.
Sid
,
usersid
);
CloseHandle
(
token
);
}
static
void
test_MsiQueryProductState
(
void
)
...
...
dlls/msi/tests/package.c
View file @
6d75522f
...
...
@@ -51,6 +51,7 @@ static void get_user_sid(LPSTR *usersid)
GetTokenInformation
(
token
,
TokenUser
,
buf
,
size
,
&
size
);
user
=
(
PTOKEN_USER
)
buf
;
pConvertSidToStringSidA
(
user
->
User
.
Sid
,
usersid
);
CloseHandle
(
token
);
}
/* RegDeleteTreeW from dlls/advapi32/registry.c */
...
...
dlls/msi/tests/source.c
View file @
6d75522f
...
...
@@ -139,6 +139,7 @@ static int get_user_sid(LPSTR *usersid)
GetTokenInformation
(
token
,
TokenUser
,
buf
,
size
,
&
size
);
user
=
(
PTOKEN_USER
)
buf
;
pConvertSidToStringSidA
(
user
->
User
.
Sid
,
usersid
);
CloseHandle
(
token
);
return
1
;
}
...
...
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