Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ae0a73d4
Commit
ae0a73d4
authored
Jan 20, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 20, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some small fixes to enhmetafiles.
parent
9ad9017e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
enhmetafile.c
objects/enhmetafile.c
+6
-0
gdi32.spec
relay32/gdi32.spec
+1
-1
No files found.
objects/enhmetafile.c
View file @
ae0a73d4
...
...
@@ -4,6 +4,7 @@
*/
#include <string.h>
#include <assert.h>
#include "windows.h"
#include "gdi.h"
#include "winbase.h"
...
...
@@ -26,6 +27,10 @@ HENHMETAFILE32 WINAPI GetEnhMetaFile32A(
DWORD
read
;
HFILE32
hf
=
CreateFile32A
(
lpszMetaFile
,
GENERIC_READ
,
0
,
0
,
OPEN_EXISTING
,
0
,
0
);
if
(
hf
==
INVALID_HANDLE_VALUE32
)
{
FIXME
(
metafile
,
"could not open %s
\n
"
,
lpszMetaFile
);
return
0
;
}
if
(
!
ReadFile
(
hf
,
&
h
,
sizeof
(
ENHMETAHEADER
),
&
read
,
NULL
))
return
0
;
if
(
read
!=
sizeof
(
ENHMETAHEADER
))
return
0
;
...
...
@@ -34,6 +39,7 @@ HENHMETAFILE32 WINAPI GetEnhMetaFile32A(
hmf
=
GlobalAlloc32
(
GPTR
,
h
.
nBytes
);
p
=
GlobalLock32
(
hmf
);
if
(
!
ReadFile
(
hf
,
p
,
h
.
nBytes
,
&
read
,
NULL
))
return
0
;
assert
(
read
==
h
.
nBytes
);
GlobalUnlock32
(
hmf
);
return
hmf
;
}
...
...
relay32/gdi32.spec
View file @
ae0a73d4
...
...
@@ -176,7 +176,7 @@ init MAIN_GdiInit
171 stdcall GetDeviceCaps(long long) GetDeviceCaps32
172 stub GetDeviceGammaRamp
173 stub GetETM
174 stdcall GetEnhMetaFileA(
p
tr) GetEnhMetaFile32A
174 stdcall GetEnhMetaFileA(
s
tr) GetEnhMetaFile32A
175 stdcall GetEnhMetaFileBits(long long ptr) GetEnhMetaFileBits
176 stdcall GetEnhMetaFileDescriptionA(long long ptr) GetEnhMetaFileDescription32A
177 stdcall GetEnhMetaFileDescriptionW(long long ptr) GetEnhMetaFileDescription32W
...
...
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