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
ca741823
Commit
ca741823
authored
Sep 23, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Only use Windows platform-specific encoded strings from the font naming table.
parent
19a965f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
font.c
dlls/msi/font.c
+15
-4
No files found.
dlls/msi/font.c
View file @
ca741823
...
@@ -143,17 +143,28 @@ static WCHAR *load_ttf_name_id( const WCHAR *filename, DWORD id )
...
@@ -143,17 +143,28 @@ static WCHAR *load_ttf_name_id( const WCHAR *filename, DWORD id )
break
;
break
;
ttRecord
.
uNameID
=
SWAPWORD
(
ttRecord
.
uNameID
);
ttRecord
.
uNameID
=
SWAPWORD
(
ttRecord
.
uNameID
);
if
(
ttRecord
.
uNameID
==
id
)
ttRecord
.
uPlatformID
=
SWAPWORD
(
ttRecord
.
uPlatformID
);
ttRecord
.
uEncodingID
=
SWAPWORD
(
ttRecord
.
uEncodingID
);
if
(
ttRecord
.
uNameID
==
id
&&
ttRecord
.
uPlatformID
==
3
&&
(
ttRecord
.
uEncodingID
==
0
||
ttRecord
.
uEncodingID
==
1
))
{
{
LPSTR
buf
;
WCHAR
*
buf
;
unsigned
int
i
;
ttRecord
.
uStringLength
=
SWAPWORD
(
ttRecord
.
uStringLength
);
ttRecord
.
uStringLength
=
SWAPWORD
(
ttRecord
.
uStringLength
);
ttRecord
.
uStringOffset
=
SWAPWORD
(
ttRecord
.
uStringOffset
);
ttRecord
.
uStringOffset
=
SWAPWORD
(
ttRecord
.
uStringOffset
);
SetFilePointer
(
handle
,
tblDir
.
uOffset
+
ttRecord
.
uStringOffset
+
ttNTHeader
.
uStorageOffset
,
SetFilePointer
(
handle
,
tblDir
.
uOffset
+
ttRecord
.
uStringOffset
+
ttNTHeader
.
uStorageOffset
,
NULL
,
FILE_BEGIN
);
NULL
,
FILE_BEGIN
);
if
(
!
(
buf
=
msi_alloc_zero
(
ttRecord
.
uStringLength
+
1
)))
goto
end
;
if
(
!
(
buf
=
msi_alloc_zero
(
ttRecord
.
uStringLength
+
sizeof
(
WCHAR
)
)))
goto
end
;
dwRead
=
0
;
ReadFile
(
handle
,
buf
,
ttRecord
.
uStringLength
,
&
dwRead
,
NULL
);
ReadFile
(
handle
,
buf
,
ttRecord
.
uStringLength
,
&
dwRead
,
NULL
);
ret
=
strdupAtoW
(
buf
);
if
(
dwRead
%
sizeof
(
WCHAR
))
{
msi_free
(
buf
);
goto
end
;
}
for
(
i
=
0
;
i
<
dwRead
/
sizeof
(
WCHAR
);
i
++
)
buf
[
i
]
=
SWAPWORD
(
buf
[
i
]);
ret
=
strdupW
(
buf
);
msi_free
(
buf
);
msi_free
(
buf
);
break
;
break
;
}
}
...
...
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