Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
23aa0f64
Commit
23aa0f64
authored
Dec 18, 2002
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix signed/unsigned warnings.
parent
158063fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
clist.c
dlls/shlwapi/tests/clist.c
+4
-4
shreg.c
dlls/shlwapi/tests/shreg.c
+7
-8
No files found.
dlls/shlwapi/tests/clist.c
View file @
23aa0f64
...
...
@@ -267,7 +267,7 @@ static void test_CList(void)
LPCSHLWAPI_CLIST
item
=
SHLWAPI_CLIST_items
;
HRESULT
hRet
;
LPSHLWAPI_CLIST
inserted
;
char
buff
[
64
];
BYTE
buff
[
64
];
unsigned
int
i
;
if
(
!
pSHLWAPI_17
||
!
pSHLWAPI_18
||
!
pSHLWAPI_19
||
!
pSHLWAPI_20
||
...
...
@@ -296,13 +296,13 @@ static void test_CList(void)
inserted
=
pSHLWAPI_22
(
list
,
item
->
ulId
);
ok
(
inserted
!=
NULL
,
"lost after adding"
);
ok
(
!
inserted
||
inserted
->
ulId
!=
-
1
u
,
"find returned a container"
);
ok
(
!
inserted
||
inserted
->
ulId
!=
-
1
,
"find returned a container"
);
/* Check size */
if
(
inserted
&&
inserted
->
ulSize
&
0x3
)
{
/* Contained */
ok
(
inserted
[
-
1
].
ulId
==
-
1
u
,
"invalid size is not countained"
);
ok
(
inserted
[
-
1
].
ulId
==
-
1
,
"invalid size is not countained"
);
ok
(
inserted
[
-
1
].
ulSize
>
inserted
->
ulSize
+
sizeof
(
SHLWAPI_CLIST
),
"container too small"
);
}
...
...
@@ -431,7 +431,7 @@ static void test_CList(void)
if
(
inserted
)
{
BOOL
bDataOK
=
TRUE
;
char
*
bufftest
=
(
char
*
)
inserted
;
LPBYTE
bufftest
=
(
LPBYTE
)
inserted
;
for
(
i
=
0
;
i
<
inserted
->
ulSize
-
sizeof
(
SHLWAPI_CLIST
);
i
++
)
if
(
bufftest
[
sizeof
(
SHLWAPI_CLIST
)
+
i
]
!=
i
*
2
)
...
...
dlls/shlwapi/tests/shreg.c
View file @
23aa0f64
...
...
@@ -134,8 +134,7 @@ static void test_SHQUeryValueEx(void)
char
buf
[
MAX_PATH
];
DWORD
dwRet
;
char
*
sTestedFunction
=
""
;
int
nUsedBuffer1
;
int
nUsedBuffer2
;
DWORD
nUsedBuffer1
,
nUsedBuffer2
;
ok
(
!
RegOpenKeyExA
(
HKEY_CURRENT_USER
,
REG_TEST_KEY
,
0
,
KEY_QUERY_VALUE
,
&
hKey
),
"test4 RegOpenKey"
);
...
...
@@ -162,14 +161,14 @@ static void test_SHQUeryValueEx(void)
*/
dwSize
=
6
;
ok
(
!
SHQueryValueExA
(
hKey
,
"Test1"
,
NULL
,
NULL
,
NULL
,
&
dwSize
),
"SHQueryValueExA failed"
);
ok
(
dwSize
==
nUsedBuffer1
,
"(%lu,%u)"
,
dwSize
,
nUsedBuffer1
);
ok
(
dwSize
==
nUsedBuffer1
,
"(%lu,%
l
u)"
,
dwSize
,
nUsedBuffer1
);
/*
* dwExpanded > dwUnExpanded
*/
dwSize
=
6
;
ok
(
!
SHQueryValueExA
(
hKey
,
"Test3"
,
NULL
,
NULL
,
NULL
,
&
dwSize
),
"SHQueryValueExA failed"
);
ok
(
dwSize
==
nUsedBuffer2
,
"(%lu,%u)"
,
dwSize
,
nUsedBuffer2
);
ok
(
dwSize
==
nUsedBuffer2
,
"(%lu,%
l
u)"
,
dwSize
,
nUsedBuffer2
);
/*
...
...
@@ -182,7 +181,7 @@ static void test_SHQUeryValueEx(void)
ok
(
dwRet
==
ERROR_MORE_DATA
,
"(%lu)"
,
dwRet
);
ok
(
0
==
strcmp
(
sEmptyBuffer
,
buf
),
"(%s)"
,
buf
);
ok
(
dwType
==
REG_SZ
,
"(%lu)"
,
dwType
);
ok
(
dwSize
==
nUsedBuffer1
,
"(%lu,%u)"
,
dwSize
,
nUsedBuffer1
);
ok
(
dwSize
==
nUsedBuffer1
,
"(%lu,%
l
u)"
,
dwSize
,
nUsedBuffer1
);
/*
* string grows during expanding
...
...
@@ -193,7 +192,7 @@ static void test_SHQUeryValueEx(void)
dwRet
=
SHQueryValueExA
(
hKey
,
"Test3"
,
NULL
,
&
dwType
,
buf
,
&
dwSize
);
ok
(
ERROR_MORE_DATA
==
dwRet
,
"ERROR_MORE_DATA"
);
ok
(
0
==
strcmp
(
sEmptyBuffer
,
buf
),
"(%s)"
,
buf
);
ok
(
dwSize
==
nUsedBuffer2
,
"(%lu,%u)"
,
dwSize
,
nUsedBuffer2
);
ok
(
dwSize
==
nUsedBuffer2
,
"(%lu,%
l
u)"
,
dwSize
,
nUsedBuffer2
);
ok
(
dwType
==
REG_SZ
,
"(%lu)"
,
dwType
);
/*
...
...
@@ -205,7 +204,7 @@ static void test_SHQUeryValueEx(void)
ok
(
ERROR_MORE_DATA
==
SHQueryValueExA
(
hKey
,
"Test3"
,
NULL
,
&
dwType
,
buf
,
&
dwSize
),
"Expected ERROR_MORE_DATA"
);
ok
(
0
==
strncmp
(
sExpTestpath2
,
buf
,
sExpLen2
-
4
-
1
),
"(%s)"
,
buf
);
ok
(
sExpLen2
-
4
-
1
==
strlen
(
buf
),
"(%s)"
,
buf
);
ok
(
dwSize
==
nUsedBuffer2
,
"(%lu,%u)"
,
dwSize
,
nUsedBuffer2
);
ok
(
dwSize
==
nUsedBuffer2
,
"(%lu,%
l
u)"
,
dwSize
,
nUsedBuffer2
);
ok
(
dwType
==
REG_SZ
,
"(%lu)"
,
dwType
);
/*
...
...
@@ -216,7 +215,7 @@ static void test_SHQUeryValueEx(void)
dwType
=
-
1
;
dwRet
=
SHQueryValueExA
(
hKey
,
"Test3"
,
NULL
,
&
dwType
,
NULL
,
&
dwSize
);
ok
(
ERROR_SUCCESS
==
dwRet
,
"(%lu)"
,
dwRet
);
ok
(
dwSize
==
nUsedBuffer2
,
"(%lu,%u)"
,
dwSize
,
nUsedBuffer2
);
ok
(
dwSize
==
nUsedBuffer2
,
"(%lu,%
l
u)"
,
dwSize
,
nUsedBuffer2
);
ok
(
dwType
==
REG_SZ
,
"(%lu)"
,
dwType
);
...
...
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