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
87f08197
Commit
87f08197
authored
Apr 21, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Use ok() functionality to print line numbers.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e89a7735
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
assoc.c
dlls/shell32/tests/assoc.c
+7
-7
No files found.
dlls/shell32/tests/assoc.c
View file @
87f08197
...
...
@@ -100,7 +100,7 @@ static struct assoc_getstring_test getstring_tests[] =
{
NULL
}
};
static
void
getstring_test
(
LPCWSTR
assocName
,
HKEY
progIdKey
,
ASSOCSTR
str
,
LPCWSTR
expected_string
,
int
line
_num
)
static
void
getstring_test
(
LPCWSTR
assocName
,
HKEY
progIdKey
,
ASSOCSTR
str
,
LPCWSTR
expected_string
,
int
line
)
{
IQueryAssociations
*
assoc
;
HRESULT
hr
;
...
...
@@ -108,25 +108,25 @@ static void getstring_test(LPCWSTR assocName, HKEY progIdKey, ASSOCSTR str, LPCW
DWORD
len
;
hr
=
CoCreateInstance
(
&
CLSID_QueryAssociations
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IQueryAssociations
,
(
void
*
)
&
assoc
);
ok
(
hr
==
S_OK
,
"line %d: failed to create IQueryAssociations, 0x%x
\n
"
,
line_num
,
hr
);
ok
_
(
__FILE__
,
line
)(
hr
==
S_OK
,
"failed to create IQueryAssociations, 0x%x
\n
"
,
hr
);
hr
=
IQueryAssociations_Init
(
assoc
,
0
,
assocName
,
progIdKey
,
NULL
);
ok
(
hr
==
S_OK
,
"line %d: IQueryAssociations::Init failed, 0x%x
\n
"
,
line_num
,
hr
);
ok
_
(
__FILE__
,
line
)(
hr
==
S_OK
,
"IQueryAssociations::Init failed, 0x%x
\n
"
,
hr
);
hr
=
IQueryAssociations_GetString
(
assoc
,
0
,
str
,
NULL
,
NULL
,
&
len
);
if
(
hr
!=
S_FALSE
)
{
if
(
expected_string
)
{
ok
(
SUCCEEDED
(
hr
),
"line %d: GetString returned 0x%x, expected success
\n
"
,
line_num
,
hr
);
ok
_
(
__FILE__
,
line
)(
SUCCEEDED
(
hr
),
"GetString returned 0x%x, expected success
\n
"
,
hr
);
}
else
{
ok
(
FAILED
(
hr
),
"line %d: GetString returned 0x%x, expected failure
\n
"
,
line_num
,
hr
);
ok
_
(
__FILE__
,
line
)(
FAILED
(
hr
),
"GetString returned 0x%x, expected failure
\n
"
,
hr
);
}
}
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
ok
(
buffer
!=
NULL
,
"line %d: out of memory
\n
"
,
line_num
);
ok
_
(
__FILE__
,
line
)(
buffer
!=
NULL
,
"out of memory
\n
"
);
hr
=
IQueryAssociations_GetString
(
assoc
,
0
,
str
,
NULL
,
buffer
,
&
len
);
if
(
expected_string
)
{
ok
(
lstrcmpW
(
buffer
,
expected_string
)
==
0
,
"line %d: GetString returned %s, expected %s
\n
"
,
line_num
,
ok
_
(
__FILE__
,
line
)(
lstrcmpW
(
buffer
,
expected_string
)
==
0
,
"GetString returned %s, expected %s
\n
"
,
wine_dbgstr_w
(
buffer
),
wine_dbgstr_w
(
expected_string
));
}
}
...
...
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