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
14efc6eb
Commit
14efc6eb
authored
Oct 26, 2011
by
Ken Thomases
Committed by
Alexandre Julliard
Oct 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Allow ~-based paths in HKCU\Software\Wine\Fonts:Path.
parent
c441d574
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
freetype.c
dlls/gdi32/freetype.c
+11
-1
No files found.
dlls/gdi32/freetype.c
View file @
14efc6eb
...
...
@@ -3115,9 +3115,19 @@ static void init_font_list(void)
ptr
=
valueA
;
while
(
ptr
)
{
const
char
*
home
;
LPSTR
next
=
strchr
(
ptr
,
':'
);
if
(
next
)
*
next
++
=
0
;
ReadFontDir
(
ptr
,
TRUE
);
if
(
ptr
[
0
]
==
'~'
&&
ptr
[
1
]
==
'/'
&&
(
home
=
getenv
(
"HOME"
))
&&
(
unixname
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
ptr
)
+
strlen
(
home
)
)))
{
strcpy
(
unixname
,
home
);
strcat
(
unixname
,
ptr
+
1
);
ReadFontDir
(
unixname
,
TRUE
);
HeapFree
(
GetProcessHeap
(),
0
,
unixname
);
}
else
ReadFontDir
(
ptr
,
TRUE
);
ptr
=
next
;
}
HeapFree
(
GetProcessHeap
(),
0
,
valueA
);
...
...
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