mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 21:20:25 +00:00
shlwapi/tests: Fix the spelling of IID_Endianness.
This commit is contained in:
parent
5197ab4e52
commit
77f68e30f5
@ -96,7 +96,7 @@ static const GUID * TEST_guids[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
DEFINE_GUID(IID_Endianess, 0x01020304, 0x0506, 0x0708, 0x09, 0x0A, 0x0B,
|
||||
DEFINE_GUID(IID_Endianness, 0x01020304, 0x0506, 0x0708, 0x09, 0x0A, 0x0B,
|
||||
0x0C, 0x0D, 0x0E, 0x0F, 0x0A);
|
||||
|
||||
static void test_ClassIDs(void)
|
||||
@ -129,25 +129,25 @@ static void test_ClassIDs(void)
|
||||
}
|
||||
|
||||
/* Test endianness */
|
||||
dwLen = pSHLWAPI_23(&IID_Endianess, szBuff, 256);
|
||||
ok(dwLen == (is_vista ? S_OK : 39), "wrong size %u for IID_Endianess\n", dwLen);
|
||||
dwLen = pSHLWAPI_23(&IID_Endianness, szBuff, 256);
|
||||
ok(dwLen == (is_vista ? S_OK : 39), "wrong size %u for IID_Endianness\n", dwLen);
|
||||
|
||||
ok(!strcmp(szBuff, "{01020304-0506-0708-090A-0B0C0D0E0F0A}"),
|
||||
"Endianess Broken, got '%s'\n", szBuff);
|
||||
"Endianness Broken, got '%s'\n", szBuff);
|
||||
|
||||
/* test lengths */
|
||||
szBuff[0] = ':';
|
||||
dwLen = pSHLWAPI_23(&IID_Endianess, szBuff, 0);
|
||||
dwLen = pSHLWAPI_23(&IID_Endianness, szBuff, 0);
|
||||
ok(dwLen == (is_vista ? E_FAIL : 0), "accepted bad length\n");
|
||||
ok(szBuff[0] == ':', "wrote to buffer with no length\n");
|
||||
|
||||
szBuff[0] = ':';
|
||||
dwLen = pSHLWAPI_23(&IID_Endianess, szBuff, 38);
|
||||
dwLen = pSHLWAPI_23(&IID_Endianness, szBuff, 38);
|
||||
ok(dwLen == (is_vista ? E_FAIL : 0), "accepted bad length\n");
|
||||
ok(szBuff[0] == ':', "wrote to buffer with no length\n");
|
||||
|
||||
szBuff[0] = ':';
|
||||
dwLen = pSHLWAPI_23(&IID_Endianess, szBuff, 39);
|
||||
dwLen = pSHLWAPI_23(&IID_Endianness, szBuff, 39);
|
||||
ok(dwLen == (is_vista ? S_OK : 39), "rejected ok length\n");
|
||||
ok(szBuff[0] == '{', "Didn't write to buffer with ok length\n");
|
||||
|
||||
@ -156,7 +156,7 @@ static void test_ClassIDs(void)
|
||||
bRet = pSHLWAPI_269(szBuff, &guid);
|
||||
ok(bRet == FALSE, "accepted invalid string\n");
|
||||
|
||||
dwLen = pSHLWAPI_23(&IID_Endianess, szBuff, 39);
|
||||
dwLen = pSHLWAPI_23(&IID_Endianness, szBuff, 39);
|
||||
ok(dwLen == (is_vista ? S_OK : 39), "rejected ok length\n");
|
||||
ok(szBuff[0] == '{', "Didn't write to buffer with ok length\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user