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
3d5ea201
Commit
3d5ea201
authored
May 20, 2008
by
Michael Karcher
Committed by
Alexandre Julliard
May 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Test StringFromGUID2.
parent
a2880cc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
compobj.c
dlls/ole32/tests/compobj.c
+22
-0
No files found.
dlls/ole32/tests/compobj.c
View file @
3d5ea201
...
...
@@ -197,6 +197,27 @@ static void test_CLSIDFromString(void)
ok
(
IsEqualCLSID
(
&
clsid
,
&
CLSID_NULL
),
"clsid wasn't equal to CLSID_NULL
\n
"
);
}
static
void
test_StringFromGUID2
(
void
)
{
WCHAR
str
[
50
];
int
len
;
/* Test corner cases for buffer size */
len
=
StringFromGUID2
(
&
CLSID_CDeviceMoniker
,
str
,
50
);
ok
(
len
==
39
,
"len: %d (expected 39)"
,
len
);
ok
(
!
lstrcmpiW
(
str
,
wszCLSID_CDeviceMoniker
),
"string wan't equal for CLSID_CDeviceMoniker
\n
"
);
memset
(
str
,
0
,
sizeof
str
);
len
=
StringFromGUID2
(
&
CLSID_CDeviceMoniker
,
str
,
39
);
ok
(
len
==
39
,
"len: %d (expected 39)"
,
len
);
ok
(
!
lstrcmpiW
(
str
,
wszCLSID_CDeviceMoniker
),
"string wan't equal for CLSID_CDeviceMoniker
\n
"
);
len
=
StringFromGUID2
(
&
CLSID_CDeviceMoniker
,
str
,
38
);
ok
(
len
==
0
,
"len: %d (expected 0)"
,
len
);
len
=
StringFromGUID2
(
&
CLSID_CDeviceMoniker
,
str
,
30
);
ok
(
len
==
0
,
"len: %d (expected 0)"
,
len
);
}
static
void
test_CoCreateInstance
(
void
)
{
REFCLSID
rclsid
=
&
CLSID_MyComputer
;
...
...
@@ -1008,6 +1029,7 @@ START_TEST(compobj)
test_ProgIDFromCLSID
();
test_CLSIDFromProgID
();
test_CLSIDFromString
();
test_StringFromGUID2
();
test_CoCreateInstance
();
test_ole_menu
();
test_CoGetClassObject
();
...
...
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