Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
9be5df10
Commit
9be5df10
authored
11 years ago
by
Frédéric Delanoy
Committed by
Alexandre Julliard
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
shlwapi/tests: Avoid memory leaks (coverity).
parent
799c2fb8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/shlwapi/tests/ordinal.c
+8
-3
8 additions, 3 deletions
dlls/shlwapi/tests/ordinal.c
dlls/shlwapi/tests/url.c
+5
-4
5 additions, 4 deletions
dlls/shlwapi/tests/url.c
with
13 additions
and
7 deletions
dlls/shlwapi/tests/ordinal.c
+
8
−
3
View file @
9be5df10
...
...
@@ -2272,7 +2272,7 @@ static const IServiceProviderVtbl IServiceProviderImpl_Vtbl =
static
void
test_IUnknown_QueryServiceExec
(
void
)
{
IServiceProvider
*
provider
=
IServiceProviderImpl_Construct
()
;
IServiceProvider
*
provider
;
static
const
GUID
dummy_serviceid
=
{
0xdeadbeef
};
static
const
GUID
dummy_groupid
=
{
0xbeefbeef
};
call_trace_t
trace_expected
;
...
...
@@ -2286,6 +2286,8 @@ static void test_IUnknown_QueryServiceExec(void)
return
;
}
provider
=
IServiceProviderImpl_Construct
();
/* null source pointer */
hr
=
pIUnknown_QueryServiceExec
(
NULL
,
&
dummy_serviceid
,
&
dummy_groupid
,
0
,
0
,
0
,
0
);
ok
(
hr
==
E_FAIL
,
"got 0x%08x
\n
"
,
hr
);
...
...
@@ -2384,8 +2386,8 @@ static const IProfferServiceVtbl IProfferServiceImpl_Vtbl =
static
void
test_IUnknown_ProfferService
(
void
)
{
IServiceProvider
*
provider
=
IServiceProviderImpl_Construct
()
;
IProfferService
*
proff
=
IProfferServiceImpl_Construct
()
;
IServiceProvider
*
provider
;
IProfferService
*
proff
;
static
const
GUID
dummy_serviceid
=
{
0xdeadbeef
};
call_trace_t
trace_expected
;
HRESULT
hr
;
...
...
@@ -2399,6 +2401,9 @@ static void test_IUnknown_ProfferService(void)
return
;
}
provider
=
IServiceProviderImpl_Construct
();
proff
=
IProfferServiceImpl_Construct
();
/* null source pointer */
hr
=
pIUnknown_ProfferService
(
NULL
,
&
dummy_serviceid
,
0
,
0
);
ok
(
hr
==
E_FAIL
,
"got 0x%08x
\n
"
,
hr
);
...
...
This diff is collapsed.
Click to expand it.
dlls/shlwapi/tests/url.c
+
5
−
4
View file @
9be5df10
...
...
@@ -1082,10 +1082,7 @@ static void test_url_combine(const char *szUrl1, const char *szUrl2, DWORD dwFla
HRESULT
hr
;
CHAR
szReturnUrl
[
INTERNET_MAX_URL_LENGTH
];
WCHAR
wszReturnUrl
[
INTERNET_MAX_URL_LENGTH
];
LPWSTR
wszUrl1
=
GetWideString
(
szUrl1
);
LPWSTR
wszUrl2
=
GetWideString
(
szUrl2
);
LPWSTR
wszExpectUrl
=
GetWideString
(
szExpectUrl
);
LPWSTR
wszConvertedUrl
;
LPWSTR
wszUrl1
,
wszUrl2
,
wszExpectUrl
,
wszConvertedUrl
;
DWORD
dwSize
;
DWORD
dwExpectLen
=
lstrlenA
(
szExpectUrl
);
...
...
@@ -1095,6 +1092,10 @@ static void test_url_combine(const char *szUrl1, const char *szUrl2, DWORD dwFla
return
;
}
wszUrl1
=
GetWideString
(
szUrl1
);
wszUrl2
=
GetWideString
(
szUrl2
);
wszExpectUrl
=
GetWideString
(
szExpectUrl
);
hr
=
pUrlCombineA
(
szUrl1
,
szUrl2
,
NULL
,
NULL
,
dwFlags
);
ok
(
hr
==
E_INVALIDARG
,
"UrlCombineA returned 0x%08x, expected 0x%08x
\n
"
,
hr
,
E_INVALIDARG
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment