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
cc6d2f90
Commit
cc6d2f90
authored
Apr 25, 2000
by
Gerard Patel
Committed by
Alexandre Julliard
Apr 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use the template member unless the corresponding flag is set.
parent
fd40e89f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
colordlg.c
dlls/commdlg/colordlg.c
+6
-11
No files found.
dlls/commdlg/colordlg.c
View file @
cc6d2f90
/* TODO : WS_CLIPCHILDREN in cdlg*.h
fix CHOOSECOLORW (lpCustColor) */
/*
* COMMDLG - Color Dialog
*
...
...
@@ -1451,9 +1449,7 @@ BOOL WINAPI ChooseColorA( LPCHOOSECOLORA lpChCol )
{
BOOL
ret
;
WCHAR
*
wstr
=
NULL
;
LPCHOOSECOLORW
lpcc
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
CHOOSECOLORW
));
LPCHOOSECOLORW
lpcc
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
CHOOSECOLORW
));
lpcc
->
lStructSize
=
sizeof
(
*
lpcc
);
lpcc
->
hwndOwner
=
lpChCol
->
hwndOwner
;
lpcc
->
hInstance
=
lpChCol
->
hInstance
;
...
...
@@ -1462,15 +1458,14 @@ BOOL WINAPI ChooseColorA( LPCHOOSECOLORA lpChCol )
lpcc
->
Flags
=
lpChCol
->
Flags
;
lpcc
->
lCustData
=
lpChCol
->
lCustData
;
lpcc
->
lpfnHook
=
(
LPCCHOOKPROC
)
lpChCol
->
lpfnHook
;
if
(
lpChCol
->
lpTemplateName
)
wstr
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
lpChCol
->
lpTemplateName
);
lpcc
->
lpTemplateName
=
wstr
;
if
((
lpcc
->
Flags
&
CC_ENABLETEMPLATE
)
&&
(
lpChCol
->
lpTemplateName
))
lpcc
->
lpTemplateName
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
lpChCol
->
lpTemplateName
);
ret
=
ChooseColorW
(
lpcc
);
if
(
ret
)
if
(
ret
)
lpChCol
->
rgbResult
=
lpcc
->
rgbResult
;
if
(
wstr
)
HeapFree
(
GetProcessHeap
(),
0
,
wstr
);
HeapFree
(
GetProcessHeap
(),
0
,
lpcc
);
if
(
lpcc
->
lpTemplateName
)
HeapFree
(
GetProcessHeap
(),
0
,
lpcc
->
lpTemplateName
);
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