mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
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.
This commit is contained in:
parent
5398e17d0a
commit
40b39b06d4
@ -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 && !lstrcmpiW(str.Buffer, szGuid), "Endianess broken\n");
|
||||
}
|
||||
|
||||
START_TEST(rtlstr)
|
||||
|
Loading…
Reference in New Issue
Block a user