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
9be5df10
Commit
9be5df10
authored
Dec 02, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Dec 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Avoid memory leaks (coverity).
parent
799c2fb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
ordinal.c
dlls/shlwapi/tests/ordinal.c
+8
-3
url.c
dlls/shlwapi/tests/url.c
+5
-4
No files found.
dlls/shlwapi/tests/ordinal.c
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
);
...
...
dlls/shlwapi/tests/url.c
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
);
...
...
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