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
ec6a5175
Commit
ec6a5175
authored
Apr 09, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: The closing brace of a guid string is at index 37.
parent
1f882cd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
rtlstr.c
dlls/ntdll/rtlstr.c
+1
-1
rtlstr.c
dlls/ntdll/tests/rtlstr.c
+9
-0
No files found.
dlls/ntdll/rtlstr.c
View file @
ec6a5175
...
...
@@ -1997,7 +1997,7 @@ NTSTATUS WINAPI RtlGUIDFromString(PUNICODE_STRING str, GUID* guid)
/* Convert string: {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
* to memory: DWORD... WORD WORD BYTES............
*/
while
(
i
<
37
)
while
(
i
<
=
37
)
{
switch
(
i
)
{
...
...
dlls/ntdll/tests/rtlstr.c
View file @
ec6a5175
...
...
@@ -1672,6 +1672,9 @@ static void test_RtlIntegerToChar(void)
static
const
WCHAR
szGuid
[]
=
{
'{'
,
'0'
,
'1'
,
'0'
,
'2'
,
'0'
,
'3'
,
'0'
,
'4'
,
'-'
,
'0'
,
'5'
,
'0'
,
'6'
,
'-'
,
'0'
,
'7'
,
'0'
,
'8'
,
'-'
,
'0'
,
'9'
,
'0'
,
'A'
,
'-'
,
'0'
,
'B'
,
'0'
,
'C'
,
'0'
,
'D'
,
'0'
,
'E'
,
'0'
,
'F'
,
'0'
,
'A'
,
'}'
,
'\0'
};
static
const
WCHAR
szGuid2
[]
=
{
'{'
,
'0'
,
'1'
,
'0'
,
'2'
,
'0'
,
'3'
,
'0'
,
'4'
,
'-'
,
'0'
,
'5'
,
'0'
,
'6'
,
'-'
,
'0'
,
'7'
,
'0'
,
'8'
,
'-'
,
'0'
,
'9'
,
'0'
,
'A'
,
'-'
,
'0'
,
'B'
,
'0'
,
'C'
,
'0'
,
'D'
,
'0'
,
'E'
,
'0'
,
'F'
,
'0'
,
'A'
,
']'
,
'\0'
};
DEFINE_GUID
(
IID_Endianess
,
0x01020304
,
0x0506
,
0x0708
,
0x09
,
0x0A
,
0x0B
,
0x0C
,
0x0D
,
0x0E
,
0x0F
,
0x0A
);
...
...
@@ -1687,6 +1690,12 @@ static void test_RtlGUIDFromString(void)
ret
=
pRtlGUIDFromString
(
&
str
,
&
guid
);
ok
(
ret
==
0
,
"expected ret=0, got 0x%0lx
\n
"
,
ret
);
ok
(
memcmp
(
&
guid
,
&
IID_Endianess
,
sizeof
(
guid
))
==
0
,
"Endianess broken
\n
"
);
str
.
Length
=
str
.
MaximumLength
=
(
sizeof
(
szGuid2
)
-
1
)
/
sizeof
(
WCHAR
);
str
.
Buffer
=
(
LPWSTR
)
szGuid2
;
ret
=
pRtlGUIDFromString
(
&
str
,
&
guid
);
ok
(
ret
,
"expected ret!=0
\n
"
);
}
static
void
test_RtlStringFromGUID
(
void
)
...
...
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