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
6443d875
Commit
6443d875
authored
Mar 26, 2010
by
Mikhail Maroukhine
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix compiler warnings.
parent
3cad4a1d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
31 deletions
+30
-31
propsheet.c
dlls/comctl32/propsheet.c
+29
-30
imagelist.c
dlls/comctl32/tests/imagelist.c
+1
-1
No files found.
dlls/comctl32/propsheet.c
View file @
6443d875
...
...
@@ -1370,10 +1370,10 @@ static BOOL PROPSHEET_CreatePage(HWND hwndParent,
const
PropSheetInfo
*
psInfo
,
LPCPROPSHEETPAGEW
ppshpage
)
{
DLGTEMPLATE
*
pTemplate
;
const
DLGTEMPLATE
*
pTemplate
;
HWND
hwndPage
;
DWORD
resSize
;
LPVOID
temp
=
NULL
;
DLGTEMPLATE
*
pTemplateCopy
=
NULL
;
TRACE
(
"index %d
\n
"
,
index
);
...
...
@@ -1384,7 +1384,7 @@ static BOOL PROPSHEET_CreatePage(HWND hwndParent,
if
(
ppshpage
->
dwFlags
&
PSP_DLGINDIRECT
)
{
pTemplate
=
(
DLGTEMPLATE
*
)
ppshpage
->
u
.
pResource
;
pTemplate
=
ppshpage
->
u
.
pResource
;
resSize
=
GetTemplateSize
(
pTemplate
);
}
else
if
(
ppshpage
->
dwFlags
&
PSP_INTERNAL_UNICODE
)
...
...
@@ -1431,39 +1431,38 @@ static BOOL PROPSHEET_CreatePage(HWND hwndParent,
* Make a copy of the dialog template to make it writable
*/
}
temp
=
Alloc
(
resSize
);
if
(
!
temp
)
pTemplateCopy
=
Alloc
(
resSize
);
if
(
!
pTemplateCopy
)
return
FALSE
;
TRACE
(
"copying pTemplate %p into temp %p (%d)
\n
"
,
pTemplate
,
temp
,
resSize
);
memcpy
(
temp
,
pTemplate
,
resSize
);
pTemplate
=
temp
;
TRACE
(
"copying pTemplate %p into pTemplateCopy %p (%d)
\n
"
,
pTemplate
,
pTemplateCopy
,
resSize
);
memcpy
(
pTemplateCopy
,
pTemplate
,
resSize
);
if
(((
MyDLGTEMPLATEEX
*
)
pTemplate
)
->
signature
==
0xFFFF
)
if
(((
MyDLGTEMPLATEEX
*
)
pTemplate
Copy
)
->
signature
==
0xFFFF
)
{
((
MyDLGTEMPLATEEX
*
)
pTemplate
)
->
style
|=
WS_CHILD
|
WS_TABSTOP
|
DS_CONTROL
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
)
->
style
&=
~
DS_MODALFRAME
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
)
->
style
&=
~
WS_CAPTION
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
)
->
style
&=
~
WS_SYSMENU
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
)
->
style
&=
~
WS_POPUP
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
)
->
style
&=
~
WS_DISABLED
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
)
->
style
&=
~
WS_VISIBLE
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
)
->
style
&=
~
WS_THICKFRAME
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
Copy
)
->
style
|=
WS_CHILD
|
WS_TABSTOP
|
DS_CONTROL
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
Copy
)
->
style
&=
~
DS_MODALFRAME
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
Copy
)
->
style
&=
~
WS_CAPTION
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
Copy
)
->
style
&=
~
WS_SYSMENU
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
Copy
)
->
style
&=
~
WS_POPUP
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
Copy
)
->
style
&=
~
WS_DISABLED
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
Copy
)
->
style
&=
~
WS_VISIBLE
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
Copy
)
->
style
&=
~
WS_THICKFRAME
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
)
->
exStyle
|=
WS_EX_CONTROLPARENT
;
((
MyDLGTEMPLATEEX
*
)
pTemplate
Copy
)
->
exStyle
|=
WS_EX_CONTROLPARENT
;
}
else
{
pTemplate
->
style
|=
WS_CHILD
|
WS_TABSTOP
|
DS_CONTROL
;
pTemplate
->
style
&=
~
DS_MODALFRAME
;
pTemplate
->
style
&=
~
WS_CAPTION
;
pTemplate
->
style
&=
~
WS_SYSMENU
;
pTemplate
->
style
&=
~
WS_POPUP
;
pTemplate
->
style
&=
~
WS_DISABLED
;
pTemplate
->
style
&=
~
WS_VISIBLE
;
pTemplate
->
style
&=
~
WS_THICKFRAME
;
pTemplate
Copy
->
style
|=
WS_CHILD
|
WS_TABSTOP
|
DS_CONTROL
;
pTemplate
Copy
->
style
&=
~
DS_MODALFRAME
;
pTemplate
Copy
->
style
&=
~
WS_CAPTION
;
pTemplate
Copy
->
style
&=
~
WS_SYSMENU
;
pTemplate
Copy
->
style
&=
~
WS_POPUP
;
pTemplate
Copy
->
style
&=
~
WS_DISABLED
;
pTemplate
Copy
->
style
&=
~
WS_VISIBLE
;
pTemplate
Copy
->
style
&=
~
WS_THICKFRAME
;
pTemplate
->
dwExtendedStyle
|=
WS_EX_CONTROLPARENT
;
pTemplate
Copy
->
dwExtendedStyle
|=
WS_EX_CONTROLPARENT
;
}
if
(
psInfo
->
proppage
[
index
].
useCallback
)
...
...
@@ -1472,18 +1471,18 @@ static BOOL PROPSHEET_CreatePage(HWND hwndParent,
if
(
ppshpage
->
dwFlags
&
PSP_INTERNAL_UNICODE
)
hwndPage
=
CreateDialogIndirectParamW
(
ppshpage
->
hInstance
,
pTemplate
,
pTemplate
Copy
,
hwndParent
,
ppshpage
->
pfnDlgProc
,
(
LPARAM
)
ppshpage
);
else
hwndPage
=
CreateDialogIndirectParamA
(
ppshpage
->
hInstance
,
pTemplate
,
pTemplate
Copy
,
hwndParent
,
ppshpage
->
pfnDlgProc
,
(
LPARAM
)
ppshpage
);
/* Free a no more needed copy */
Free
(
temp
);
Free
(
pTemplateCopy
);
psInfo
->
proppage
[
index
].
hwndPage
=
hwndPage
;
...
...
dlls/comctl32/tests/imagelist.c
View file @
6443d875
...
...
@@ -833,7 +833,7 @@ static void check_bitmap_data(const char *bm_data, ULONG bm_data_size,
static
void
check_ilhead_data
(
const
char
*
ilh_data
,
INT
cx
,
INT
cy
,
INT
cur
,
INT
max
)
{
ILHEAD
*
ilh
=
(
ILHEAD
*
)
ilh_data
;
const
ILHEAD
*
ilh
=
(
const
ILHEAD
*
)
ilh_data
;
ok
(
ilh
->
usMagic
==
IMAGELIST_MAGIC
,
"wrong usMagic %4x (expected %02x)
\n
"
,
ilh
->
usMagic
,
IMAGELIST_MAGIC
);
ok
(
ilh
->
usVersion
==
0x101
,
"wrong usVersion %x (expected 0x101)
\n
"
,
ilh
->
usVersion
);
...
...
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