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
40b39b06
Commit
40b39b06
authored
Jan 04, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix some test failures of RtlGUIDFromString and RtlStringFromGUID
by setting the length correctly and by doing a case-insentive compare on the GUID string that is returned.
parent
5398e17d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
rtlstr.c
dlls/ntdll/tests/rtlstr.c
+3
-3
No files found.
dlls/ntdll/tests/rtlstr.c
View file @
40b39b06
...
...
@@ -1684,14 +1684,14 @@ static void test_RtlGUIDFromString(void)
UNICODE_STRING
str
;
NTSTATUS
ret
;
str
.
Length
=
str
.
MaximumLength
=
(
sizeof
(
szGuid
)
-
1
)
/
sizeof
(
WCHAR
);
str
.
Length
=
str
.
MaximumLength
=
sizeof
(
szGuid
)
-
sizeof
(
WCHAR
);
str
.
Buffer
=
(
LPWSTR
)
szGuid
;
ret
=
pRtlGUIDFromString
(
&
str
,
&
guid
);
ok
(
ret
==
0
,
"expected ret=0, got 0x%0x
\n
"
,
ret
);
ok
(
memcmp
(
&
guid
,
&
IID_Endianess
,
sizeof
(
guid
))
==
0
,
"Endianess broken
\n
"
);
str
.
Length
=
str
.
MaximumLength
=
(
sizeof
(
szGuid2
)
-
1
)
/
sizeof
(
WCHAR
);
str
.
Length
=
str
.
MaximumLength
=
sizeof
(
szGuid2
)
-
sizeof
(
WCHAR
);
str
.
Buffer
=
(
LPWSTR
)
szGuid2
;
ret
=
pRtlGUIDFromString
(
&
str
,
&
guid
);
...
...
@@ -1708,7 +1708,7 @@ static void test_RtlStringFromGUID(void)
ret
=
pRtlStringFromGUID
(
&
IID_Endianess
,
&
str
);
ok
(
ret
==
0
,
"expected ret=0, got 0x%0x
\n
"
,
ret
);
ok
(
str
.
Buffer
&&
!
lstrcmpW
(
str
.
Buffer
,
szGuid
),
"Endianess broken
\n
"
);
ok
(
str
.
Buffer
&&
!
lstrcmp
i
W
(
str
.
Buffer
,
szGuid
),
"Endianess broken
\n
"
);
}
START_TEST
(
rtlstr
)
...
...
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