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
2b9be709
Commit
2b9be709
authored
Apr 20, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Fix some leaks.
parent
2e51464e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
msi.c
dlls/msi/tests/msi.c
+4
-5
No files found.
dlls/msi/tests/msi.c
View file @
2b9be709
...
...
@@ -11819,7 +11819,7 @@ static void test_MsiEnumProductsEx(void)
char
product0
[
39
],
product1
[
39
],
product2
[
39
],
product3
[
39
],
guid
[
39
],
sid
[
128
];
char
product_squashed1
[
33
],
product_squashed2
[
33
],
product_squashed3
[
33
];
char
keypath1
[
MAX_PATH
],
keypath2
[
MAX_PATH
],
keypath3
[
MAX_PATH
];
HKEY
key1
,
key2
,
key3
;
HKEY
key1
=
NULL
,
key2
=
NULL
,
key3
=
NULL
;
REGSAM
access
=
KEY_ALL_ACCESS
;
char
*
usersid
=
get_user_sid
();
...
...
@@ -11837,8 +11837,7 @@ static void test_MsiEnumProductsEx(void)
if
(
r
==
ERROR_ACCESS_DENIED
)
{
skip
(
"insufficient rights
\n
"
);
LocalFree
(
usersid
);
return
;
goto
done
;
}
ok
(
r
==
ERROR_SUCCESS
,
"got %u
\n
"
,
r
);
...
...
@@ -11919,8 +11918,7 @@ static void test_MsiEnumProductsEx(void)
if
(
r
==
ERROR_ACCESS_DENIED
)
{
skip
(
"insufficient rights
\n
"
);
LocalFree
(
usersid
);
return
;
goto
done
;
}
ok
(
r
==
ERROR_SUCCESS
,
"got %u
\n
"
,
r
);
ok
(
guid
[
0
],
"empty guid
\n
"
);
...
...
@@ -11960,6 +11958,7 @@ static void test_MsiEnumProductsEx(void)
len
=
sizeof
(
sid
);
}
done:
delete_key
(
key1
,
""
,
access
);
delete_key
(
key2
,
""
,
access
);
delete_key
(
key3
,
""
,
access
);
...
...
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