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
0c868151
Commit
0c868151
authored
Oct 22, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Cast-qual warnings fix.
parent
e2d9ce1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
colordlg.c
dlls/comdlg32/colordlg.c
+6
-3
No files found.
dlls/comdlg32/colordlg.c
View file @
0c868151
...
...
@@ -1328,7 +1328,9 @@ BOOL WINAPI ChooseColorW( LPCHOOSECOLORW lpChCol )
BOOL
WINAPI
ChooseColorA
(
LPCHOOSECOLORA
lpChCol
)
{
LPWSTR
template_name
=
NULL
;
BOOL
ret
;
LPCHOOSECOLORW
lpcc
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
CHOOSECOLORW
));
lpcc
->
lStructSize
=
sizeof
(
*
lpcc
);
lpcc
->
hwndOwner
=
lpChCol
->
hwndOwner
;
...
...
@@ -1341,8 +1343,9 @@ BOOL WINAPI ChooseColorA( LPCHOOSECOLORA lpChCol )
if
((
lpcc
->
Flags
&
CC_ENABLETEMPLATE
)
&&
(
lpChCol
->
lpTemplateName
))
{
if
(
HIWORD
(
lpChCol
->
lpTemplateName
))
{
INT
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpChCol
->
lpTemplateName
,
-
1
,
NULL
,
0
);
lpcc
->
lpTemplateName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
lpChCol
->
lpTemplateName
,
-
1
,
(
LPWSTR
)
lpcc
->
lpTemplateName
,
len
);
template_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
lpChCol
->
lpTemplateName
,
-
1
,
template_name
,
len
);
lpcc
->
lpTemplateName
=
template_name
;
}
else
{
lpcc
->
lpTemplateName
=
(
LPCWSTR
)
lpChCol
->
lpTemplateName
;
}
...
...
@@ -1352,7 +1355,7 @@ BOOL WINAPI ChooseColorA( LPCHOOSECOLORA lpChCol )
if
(
ret
)
lpChCol
->
rgbResult
=
lpcc
->
rgbResult
;
if
(
HIWORD
(
lpcc
->
lpTemplateName
))
HeapFree
(
GetProcessHeap
(),
0
,
(
LPSTR
)
lpcc
->
lpTemplateN
ame
);
HeapFree
(
GetProcessHeap
(),
0
,
template_n
ame
);
HeapFree
(
GetProcessHeap
(),
0
,
lpcc
);
return
ret
;
}
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