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
81804538
Commit
81804538
authored
Jan 22, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Cast-qual warning fixes.
parent
7f05a94f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
header.c
dlls/comctl32/tests/header.c
+18
-11
No files found.
dlls/comctl32/tests/header.c
View file @
81804538
...
...
@@ -73,22 +73,22 @@ static BOOL notifies_received(void)
return
fRet
;
}
static
LONG
addItem
(
HWND
hdex
,
int
idx
,
LP
C
STR
text
)
static
LONG
addItem
(
HWND
hdex
,
int
idx
,
LPSTR
text
)
{
HDITEMA
hdItem
;
hdItem
.
mask
=
HDI_TEXT
|
HDI_WIDTH
;
hdItem
.
cxy
=
100
;
hdItem
.
pszText
=
(
LPSTR
)
text
;
hdItem
.
pszText
=
text
;
hdItem
.
cchTextMax
=
0
;
return
(
LONG
)
SendMessage
(
hdex
,
HDM_INSERTITEMA
,
(
WPARAM
)
idx
,
(
LPARAM
)
&
hdItem
);
}
static
LONG
setItem
(
HWND
hdex
,
int
idx
,
LP
C
STR
text
,
BOOL
fCheckNotifies
)
static
LONG
setItem
(
HWND
hdex
,
int
idx
,
LPSTR
text
,
BOOL
fCheckNotifies
)
{
LONG
ret
;
HDITEMA
hdexItem
;
hdexItem
.
mask
=
HDI_TEXT
;
hdexItem
.
pszText
=
(
LPSTR
)
text
;
hdexItem
.
pszText
=
text
;
hdexItem
.
cchTextMax
=
0
;
if
(
fCheckNotifies
)
{
...
...
@@ -101,17 +101,17 @@ static LONG setItem(HWND hdex, int idx, LPCSTR text, BOOL fCheckNotifies)
return
ret
;
}
static
LONG
setItemUnicodeNotify
(
HWND
hdex
,
int
idx
,
LP
CSTR
text
,
LPC
WSTR
wText
)
static
LONG
setItemUnicodeNotify
(
HWND
hdex
,
int
idx
,
LP
STR
text
,
LP
WSTR
wText
)
{
LONG
ret
;
HDITEMA
hdexItem
;
HDITEMW
hdexNotify
;
hdexItem
.
mask
=
HDI_TEXT
;
hdexItem
.
pszText
=
(
LPSTR
)
text
;
hdexItem
.
pszText
=
text
;
hdexItem
.
cchTextMax
=
0
;
hdexNotify
.
mask
=
HDI_TEXT
;
hdexNotify
.
pszText
=
(
LPWSTR
)
wText
;
hdexNotify
.
pszText
=
wText
;
expect_notify
(
HDN_ITEMCHANGINGW
,
TRUE
,
(
HDITEMA
*
)
&
hdexNotify
);
expect_notify
(
HDN_ITEMCHANGEDW
,
TRUE
,
(
HDITEMA
*
)
&
hdexNotify
);
...
...
@@ -207,11 +207,18 @@ static void compare_items(INT iCode, HDITEMA *hdi1, HDITEMA *hdi2, BOOL fUnicode
}
}
static
const
char
*
str_items
[]
=
{
"First Item"
,
"Second Item"
,
"Third Item"
,
"Fourth Item"
,
"Replace Item"
,
"Out Of Range Item"
};
static
char
pszFirstItem
[]
=
"First Item"
;
static
char
pszSecondItem
[]
=
"Second Item"
;
static
char
pszThirdItem
[]
=
"Third Item"
;
static
char
pszFourthItem
[]
=
"Fourth Item"
;
static
char
pszReplaceItem
[]
=
"Replace Item"
;
static
char
pszOutOfRangeItem
[]
=
"Out Of Range Item"
;
static
char
*
str_items
[]
=
{
pszFirstItem
,
pszSecondItem
,
pszThirdItem
,
pszFourthItem
,
pszReplaceItem
,
pszOutOfRangeItem
};
static
c
onst
char
pszUniTestA
[]
=
"TST"
;
static
const
WCHAR
pszUniTestW
[]
=
{
'T'
,
'S'
,
'T'
,
0
};
static
c
har
pszUniTestA
[]
=
"TST"
;
static
WCHAR
pszUniTestW
[]
=
{
'T'
,
'S'
,
'T'
,
0
};
#define TEST_GET_ITEM(i,c)\
...
...
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