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
a8c54fb8
Commit
a8c54fb8
authored
Jun 27, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 27, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OleMetaFilePictFromIconAndLabel16: slightly broken, use LPOLESTR16.
parent
8f3c0a37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ole2.c
ole/ole2.c
+9
-9
No files found.
ole/ole2.c
View file @
a8c54fb8
...
...
@@ -2110,21 +2110,24 @@ static void OLEUTL_ReadRegistryDWORDValue(
* If no hIcon is given, we load the icon via lpszSourceFile and iIconIndex.
* This code might be wrong at some places.
*/
HGLOBAL16
WINAPI
OleMetaFilePictFromIconAndLabel16
(
HICON
hIcon
,
LPOLESTR
lpszLabel
,
LPOLESTR
lpszSourceFile
,
UINT16
iIconIndex
)
{
HGLOBAL16
WINAPI
OleMetaFilePictFromIconAndLabel16
(
HICON16
hIcon
,
LPCOLESTR16
lpszLabel
,
LPCOLESTR16
lpszSourceFile
,
UINT16
iIconIndex
)
{
METAFILEPICT16
*
mf
;
HGLOBAL16
hmf
;
HDC16
hdc
;
FIXME
(
ole
,
"(%04x, '%s', '%s', %d): incorrect metrics, please try to correct them !
\n\n\n
"
,
hIcon
,
(
LPCSTR
)
lpszLabel
,
(
LPCSTR
)
lpszSourceFile
,
iIconIndex
);
FIXME
(
ole
,
"(%04x, '%s', '%s', %d): incorrect metrics, please try to correct them !
\n\n\n
"
,
hIcon
,
lpszLabel
,
lpszSourceFile
,
iIconIndex
);
if
(
!
hIcon
)
{
if
(
lpszSourceFile
)
{
HINSTANCE16
hInstance
=
LoadLibrary16
((
LPCSTR
)
lpszSourceFile
);
HINSTANCE16
hInstance
=
LoadLibrary16
(
lpszSourceFile
);
/* load the icon at index from lpszSourceFile */
hIcon
=
(
HICON16
)
LoadIconA
(
hInstance
,
(
LPCSTR
)(
DWORD
)
iIconIndex
);
FreeLibrary16
(
hInstance
);
}
else
return
(
HGLOBAL
)
NULL
;
...
...
@@ -2132,15 +2135,12 @@ HGLOBAL16 WINAPI OleMetaFilePictFromIconAndLabel16(HICON hIcon, LPOLESTR lpszLab
hdc
=
CreateMetaFile16
(
NULL
);
DrawIcon
(
hdc
,
0
,
0
,
hIcon
);
/* FIXME */
TextOut16
(
hdc
,
0
,
0
,
(
LPCSTR
)
lpszLabel
,
1
);
/* FIXME */
TextOut16
(
hdc
,
0
,
0
,
lpszLabel
,
1
);
/* FIXME */
hmf
=
GlobalAlloc16
(
0
,
sizeof
(
METAFILEPICT16
));
mf
=
(
METAFILEPICT16
*
)
GlobalLock16
(
hmf
);
mf
->
mm
=
MM_ANISOTROPIC
;
mf
->
xExt
=
20
;
/* FIXME: bogus */
mf
->
yExt
=
20
;
/* dito */
mf
->
hMF
=
CloseMetaFile16
(
hdc
);
return
hmf
;
}
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