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
6dc401e2
Commit
6dc401e2
authored
Jan 04, 2002
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Jan 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove a call to HEAP_strdupAtoW in the Color dialog.
parent
9e7c1111
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
colordlg.c
dlls/commdlg/colordlg.c
+6
-4
No files found.
dlls/commdlg/colordlg.c
View file @
6dc401e2
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
#include "wingdi.h"
#include "wingdi.h"
#include "wine/winbase16.h"
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "wine/winuser16.h"
#include "heap.h"
#include "commdlg.h"
#include "commdlg.h"
#include "dlgs.h"
#include "dlgs.h"
#include "debugtools.h"
#include "debugtools.h"
...
@@ -1508,10 +1507,13 @@ BOOL WINAPI ChooseColorA( LPCHOOSECOLORA lpChCol )
...
@@ -1508,10 +1507,13 @@ BOOL WINAPI ChooseColorA( LPCHOOSECOLORA lpChCol )
lpcc
->
lCustData
=
lpChCol
->
lCustData
;
lpcc
->
lCustData
=
lpChCol
->
lCustData
;
lpcc
->
lpfnHook
=
(
LPCCHOOKPROC
)
lpChCol
->
lpfnHook
;
lpcc
->
lpfnHook
=
(
LPCCHOOKPROC
)
lpChCol
->
lpfnHook
;
if
((
lpcc
->
Flags
&
CC_ENABLETEMPLATE
)
&&
(
lpChCol
->
lpTemplateName
))
{
if
((
lpcc
->
Flags
&
CC_ENABLETEMPLATE
)
&&
(
lpChCol
->
lpTemplateName
))
{
if
(
HIWORD
(
lpChCol
->
lpTemplateName
))
if
(
HIWORD
(
lpChCol
->
lpTemplateName
))
{
lpcc
->
lpTemplateName
=
HEAP_strdupAtoW
(
GetProcessHeap
(),
0
,
lpChCol
->
lpTemplateName
);
INT
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpChCol
->
lpTemplateName
,
-
1
,
NULL
,
0
);
else
lpcc
->
lpTemplateName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
lpChCol
->
lpTemplateName
,
-
1
,
lpcc
->
lpTemplateName
,
len
);
}
else
{
lpcc
->
lpTemplateName
=
(
LPWSTR
)
lpChCol
->
lpTemplateName
;
lpcc
->
lpTemplateName
=
(
LPWSTR
)
lpChCol
->
lpTemplateName
;
}
}
}
ret
=
ChooseColorW
(
lpcc
);
ret
=
ChooseColorW
(
lpcc
);
...
...
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