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
5b389bac
Commit
5b389bac
authored
Jan 27, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Use IS_INTRESOURCE instead of HIWORD to check a resource.
parent
6b912966
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
colordlg.c
dlls/comdlg32/colordlg.c
+1
-1
filedlg31.c
dlls/comdlg32/filedlg31.c
+2
-2
No files found.
dlls/comdlg32/colordlg.c
View file @
5b389bac
...
...
@@ -1366,7 +1366,7 @@ BOOL WINAPI ChooseColorA( LPCHOOSECOLORA lpChCol )
lpcc
->
lCustData
=
lpChCol
->
lCustData
;
lpcc
->
lpfnHook
=
lpChCol
->
lpfnHook
;
if
((
lpcc
->
Flags
&
CC_ENABLETEMPLATE
)
&&
(
lpChCol
->
lpTemplateName
))
{
if
(
HIWORD
(
lpChCol
->
lpTemplateName
))
{
if
(
!
IS_INTRESOURCE
(
lpChCol
->
lpTemplateName
))
{
INT
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpChCol
->
lpTemplateName
,
-
1
,
NULL
,
0
);
template_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
lpChCol
->
lpTemplateName
,
-
1
,
template_name
,
len
);
...
...
dlls/comdlg32/filedlg31.c
View file @
5b389bac
...
...
@@ -778,7 +778,7 @@ void FD31_MapOfnStructA(const OPENFILENAMEA *ofnA, LPOPENFILENAMEW ofnW, BOOL op
ofnW
->
lpstrDefExt
=
FD31_DupToW
(
ofnA
->
lpstrDefExt
,
3
);
if
((
ofnA
->
Flags
&
OFN_ENABLETEMPLATE
)
&&
(
ofnA
->
lpTemplateName
))
{
if
(
HIWORD
(
ofnA
->
lpTemplateName
))
if
(
!
IS_INTRESOURCE
(
ofnA
->
lpTemplateName
))
{
RtlCreateUnicodeStringFromAsciiz
(
&
usBuffer
,
ofnA
->
lpTemplateName
);
ofnW
->
lpTemplateName
=
usBuffer
.
Buffer
;
...
...
@@ -801,7 +801,7 @@ void FD31_FreeOfnW(OPENFILENAMEW *ofnW)
HeapFree
(
GetProcessHeap
(),
0
,
ofnW
->
lpstrFileTitle
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPWSTR
)
ofnW
->
lpstrInitialDir
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPWSTR
)
ofnW
->
lpstrTitle
);
if
(
HIWORD
(
ofnW
->
lpTemplateName
))
if
(
!
IS_INTRESOURCE
(
ofnW
->
lpTemplateName
))
HeapFree
(
GetProcessHeap
(),
0
,
(
LPWSTR
)
ofnW
->
lpTemplateName
);
}
...
...
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