mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Avoid size_t types in traces.
This commit is contained in:
parent
b406e9a7b4
commit
c0b12351e0
@ -2163,12 +2163,12 @@ static void test_ConvertSecurityDescriptorToString()
|
||||
* don't replicate this feature so we only test len >= strlen+1. */
|
||||
#define CHECK_RESULT_AND_FREE(exp_str) \
|
||||
ok(strcmp(string, (exp_str)) == 0, "String mismatch (expected \"%s\", got \"%s\")\n", (exp_str), string); \
|
||||
ok(len >= (strlen(exp_str) + 1), "Length mismatch (expected %d, got %d)\n", strlen(exp_str) + 1, len); \
|
||||
ok(len >= (lstrlen(exp_str) + 1), "Length mismatch (expected %d, got %d)\n", lstrlen(exp_str) + 1, len); \
|
||||
LocalFree(string);
|
||||
|
||||
#define CHECK_ONE_OF_AND_FREE(exp_str1, exp_str2) \
|
||||
ok(strcmp(string, (exp_str1)) == 0 || strcmp(string, (exp_str2)) == 0, "String mismatch (expected\n\"%s\" or\n\"%s\", got\n\"%s\")\n", (exp_str1), (exp_str2), string); \
|
||||
ok(len >= (strlen(string) + 1), "Length mismatch (expected %d, got %d)\n", strlen(string) + 1, len); \
|
||||
ok(len >= (strlen(string) + 1), "Length mismatch (expected %d, got %d)\n", lstrlen(string) + 1, len); \
|
||||
LocalFree(string);
|
||||
|
||||
InitializeSecurityDescriptor(&desc, SECURITY_DESCRIPTOR_REVISION);
|
||||
|
@ -307,7 +307,7 @@ static void test_MRUListA(void)
|
||||
/* check entry 0 */
|
||||
buffer[0] = 0;
|
||||
iRet = pEnumMRUList(hMRU, 0, buffer, 255);
|
||||
todo_wine ok(iRet == strlen(checks[3]), "EnumMRUList expected %d, got %d\n", strlen(checks[3]), iRet);
|
||||
todo_wine ok(iRet == lstrlen(checks[3]), "EnumMRUList expected %d, got %d\n", lstrlen(checks[3]), iRet);
|
||||
ok(strcmp(buffer, checks[3]) == 0, "EnumMRUList expected %s, got %s\n", checks[3], buffer);
|
||||
|
||||
/* check entry 0 with a too small buffer */
|
||||
@ -316,7 +316,7 @@ static void test_MRUListA(void)
|
||||
buffer[2] = 'A'; /* unchanged */
|
||||
buffer[3] = 0; /* unchanged */
|
||||
iRet = pEnumMRUList(hMRU, 0, buffer, 2);
|
||||
todo_wine ok(iRet == strlen(checks[3]), "EnumMRUList expected %d, got %d\n", strlen(checks[3]), iRet);
|
||||
todo_wine ok(iRet == lstrlen(checks[3]), "EnumMRUList expected %d, got %d\n", lstrlen(checks[3]), iRet);
|
||||
todo_wine ok(strcmp(buffer, "T") == 0, "EnumMRUList expected %s, got %s\n", "T", buffer);
|
||||
/* make sure space after buffer has old values */
|
||||
ok(buffer[2] == 'A', "EnumMRUList expected %02x, got %02x\n", 'A', buffer[2]);
|
||||
@ -324,13 +324,13 @@ static void test_MRUListA(void)
|
||||
/* check entry 1 */
|
||||
buffer[0] = 0;
|
||||
iRet = pEnumMRUList(hMRU, 1, buffer, 255);
|
||||
todo_wine ok(iRet == strlen(checks[1]), "EnumMRUList expected %d, got %d\n", strlen(checks[1]), iRet);
|
||||
todo_wine ok(iRet == lstrlen(checks[1]), "EnumMRUList expected %d, got %d\n", lstrlen(checks[1]), iRet);
|
||||
ok(strcmp(buffer, checks[1]) == 0, "EnumMRUList expected %s, got %s\n", checks[1], buffer);
|
||||
|
||||
/* check entry 2 */
|
||||
buffer[0] = 0;
|
||||
iRet = pEnumMRUList(hMRU, 2, buffer, 255);
|
||||
todo_wine ok(iRet == strlen(checks[2]), "EnumMRUList expected %d, got %d\n", strlen(checks[2]), iRet);
|
||||
todo_wine ok(iRet == lstrlen(checks[2]), "EnumMRUList expected %d, got %d\n", lstrlen(checks[2]), iRet);
|
||||
ok(strcmp(buffer, checks[2]) == 0, "EnumMRUList expected %s, got %s\n", checks[2], buffer);
|
||||
|
||||
/* check out of bounds entry 3 */
|
||||
|
@ -1587,13 +1587,13 @@ HRESULT DirectSoundDevice_CreateSoundBuffer(
|
||||
{
|
||||
if (pwfxe->Format.cbSize < (sizeof(WAVEFORMATEXTENSIBLE) - sizeof(WAVEFORMATEX)))
|
||||
{
|
||||
WARN("Too small a cbSize (%d/%d)\n", pwfxe->Format.cbSize, (sizeof(WAVEFORMATEXTENSIBLE) - sizeof(WAVEFORMATEX)));
|
||||
WARN("Too small a cbSize %u\n", pwfxe->Format.cbSize);
|
||||
return DSERR_INVALIDPARAM;
|
||||
}
|
||||
|
||||
if (pwfxe->Format.cbSize > (sizeof(WAVEFORMATEXTENSIBLE) - sizeof(WAVEFORMATEX)))
|
||||
{
|
||||
WARN("Too big a cbSize (%d/%d)\n", pwfxe->Format.cbSize, (sizeof(WAVEFORMATEXTENSIBLE) - sizeof(WAVEFORMATEX)));
|
||||
WARN("Too big a cbSize %u\n", pwfxe->Format.cbSize);
|
||||
return DSERR_CONTROLUNAVAIL;
|
||||
}
|
||||
|
||||
|
@ -1070,9 +1070,9 @@ static void test_WM_SETTEXT()
|
||||
result = SendMessage(hwndRichEdit, WM_SETTEXT, 0, (LPARAM) a); \
|
||||
ok (result == 1, "WM_SETTEXT returned %ld instead of 1\n", result); \
|
||||
result = SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buf); \
|
||||
ok (result == strlen(buf), \
|
||||
ok (result == lstrlen(buf), \
|
||||
"WM_GETTEXT returned %ld instead of expected %u\n", \
|
||||
result, strlen(buf)); \
|
||||
result, lstrlen(buf)); \
|
||||
result = strcmp(b, buf); \
|
||||
ok(result == 0, \
|
||||
"WM_SETTEXT round trip: strcmp = %ld\n", result);
|
||||
|
@ -78,9 +78,9 @@ static void test_WM_SETTEXT()
|
||||
result = SendMessage(hwndRichEdit, WM_SETTEXT, 0, (LPARAM) a); \
|
||||
ok (result == 1, "WM_SETTEXT returned %ld instead of 1\n", result); \
|
||||
result = SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buf); \
|
||||
ok (result == strlen(buf), \
|
||||
ok (result == lstrlen(buf), \
|
||||
"WM_GETTEXT returned %ld instead of expected %u\n", \
|
||||
result, strlen(buf)); \
|
||||
result, lstrlen(buf)); \
|
||||
result = strcmp(b, buf); \
|
||||
if (is_todo) todo_wine { \
|
||||
ok(result == 0, \
|
||||
|
@ -1141,7 +1141,7 @@ static void test_conformant_string(void)
|
||||
ptr = NdrPointerMarshall( &StubMsg, (unsigned char *)memsrc, fmtstr_conf_str );
|
||||
ok(ptr == NULL, "ret %p\n", ptr);
|
||||
ok(StubMsg.Buffer - StubMsg.BufferStart == sizeof(memsrc) + 12, "Buffer %p Start %p len %d\n",
|
||||
StubMsg.Buffer, StubMsg.BufferStart, 12 + sizeof(memsrc));
|
||||
StubMsg.Buffer, StubMsg.BufferStart, StubMsg.Buffer - StubMsg.BufferStart);
|
||||
ok(!memcmp(StubMsg.BufferStart + 12, memsrc, sizeof(memsrc)), "incorrectly marshaled\n");
|
||||
|
||||
StubMsg.Buffer = StubMsg.BufferStart;
|
||||
|
Loading…
Reference in New Issue
Block a user