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
0436a5d1
Commit
0436a5d1
authored
Mar 10, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Mar 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Store the Windows path (if it's available) in the font registry entries.
parent
03695384
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
freetype.c
dlls/gdi32/freetype.c
+13
-6
No files found.
dlls/gdi32/freetype.c
View file @
0436a5d1
...
...
@@ -1807,14 +1807,21 @@ static void update_reg_entries(void)
strcatW
(
valueW
,
face
->
StyleName
);
}
strcatW
(
valueW
,
TrueType
);
if
((
path
=
strrchr
(
face
->
file
,
'/'
))
==
NULL
)
path
=
face
->
file
;
file
=
wine_get_dos_file_name
(
face
->
file
);
if
(
file
)
len
=
strlenW
(
file
)
+
1
;
else
path
++
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
path
,
-
1
,
NULL
,
0
);
{
if
((
path
=
strrchr
(
face
->
file
,
'/'
))
==
NULL
)
path
=
face
->
file
;
else
path
++
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
path
,
-
1
,
NULL
,
0
);
file
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
path
,
-
1
,
file
,
len
);
file
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
path
,
-
1
,
file
,
len
);
}
RegSetValueExW
(
winnt_key
,
valueW
,
0
,
REG_SZ
,
(
BYTE
*
)
file
,
len
*
sizeof
(
WCHAR
));
RegSetValueExW
(
win9x_key
,
valueW
,
0
,
REG_SZ
,
(
BYTE
*
)
file
,
len
*
sizeof
(
WCHAR
));
RegSetValueExW
(
external_key
,
valueW
,
0
,
REG_SZ
,
(
BYTE
*
)
file
,
len
*
sizeof
(
WCHAR
));
...
...
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