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
c0b12351
Commit
c0b12351
authored
Dec 07, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid size_t types in traces.
parent
b406e9a7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
security.c
dlls/advapi32/tests/security.c
+2
-2
mru.c
dlls/comctl32/tests/mru.c
+4
-4
dsound.c
dlls/dsound/dsound.c
+2
-2
editor.c
dlls/riched20/tests/editor.c
+2
-2
editor.c
dlls/riched32/tests/editor.c
+2
-2
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+1
-1
No files found.
dlls/advapi32/tests/security.c
View file @
c0b12351
...
...
@@ -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", l
strlen(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",
l
strlen(string) + 1, len); \
LocalFree(string);
InitializeSecurityDescriptor
(
&
desc
,
SECURITY_DESCRIPTOR_REVISION
);
...
...
dlls/comctl32/tests/mru.c
View file @
c0b12351
...
...
@@ -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
"
,
l
strlen
(
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
"
,
l
strlen
(
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
"
,
l
strlen
(
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
"
,
l
strlen
(
checks
[
2
]),
iRet
);
ok
(
strcmp
(
buffer
,
checks
[
2
])
==
0
,
"EnumMRUList expected %s, got %s
\n
"
,
checks
[
2
],
buffer
);
/* check out of bounds entry 3 */
...
...
dlls/dsound/dsound.c
View file @
c0b12351
...
...
@@ -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
;
}
...
...
dlls/riched20/tests/editor.c
View file @
c0b12351
...
...
@@ -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 ==
l
strlen(buf), \
"WM_GETTEXT returned %ld instead of expected %u\n", \
result, strlen(buf)); \
result,
l
strlen(buf)); \
result = strcmp(b, buf); \
ok(result == 0, \
"WM_SETTEXT round trip: strcmp = %ld\n", result);
...
...
dlls/riched32/tests/editor.c
View file @
c0b12351
...
...
@@ -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 ==
l
strlen(buf), \
"WM_GETTEXT returned %ld instead of expected %u\n", \
result, strlen(buf)); \
result,
l
strlen(buf)); \
result = strcmp(b, buf); \
if (is_todo) todo_wine { \
ok(result == 0, \
...
...
dlls/rpcrt4/tests/ndr_marshall.c
View file @
c0b12351
...
...
@@ -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
;
...
...
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