Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Akira TAGOH
fontconfig
Commits
b1bcc0cb
Commit
b1bcc0cb
authored
Mar 25, 2019
by
Akira TAGOH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build issues on MinGW
parent
9177cf2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/fcxml.c
src/fcxml.c
+3
-3
No files found.
src/fcxml.c
View file @
b1bcc0cb
...
...
@@ -1338,7 +1338,7 @@ _get_real_path_from_prefix(FcConfigParse *parse, const FcChar8 *path, const FcCh
if
(
!
GetModuleFileName
(
NULL
,
(
LPCH
)
buffer
,
sizeof
(
buffer
)
-
20
))
{
FcConfigMessage
(
parse
,
FcSevereError
,
"GetModuleFileName failed"
);
goto
bail
;
return
NULL
;
}
/*
* Must use the multi-byte aware function to search
...
...
@@ -1357,7 +1357,7 @@ _get_real_path_from_prefix(FcConfigParse *parse, const FcChar8 *path, const FcCh
if
(
!
GetModuleFileName
(
NULL
,
(
LPCH
)
buffer
,
sizeof
(
buffer
)
-
20
))
{
FcConfigMessage
(
parse
,
FcSevereError
,
"GetModuleFileName failed"
);
goto
bail
;
return
NULL
;
}
p
=
_mbsrchr
(
data
,
'\\'
);
if
(
p
)
*
p
=
'\0'
;
...
...
@@ -1371,7 +1371,7 @@ _get_real_path_from_prefix(FcConfigParse *parse, const FcChar8 *path, const FcCh
if
(
rc
==
0
||
rc
>
sizeof
(
buffer
)
-
20
)
{
FcConfigMessage
(
parse
,
FcSevereError
,
"GetSystemWindowsDirectory failed"
);
goto
bail
;
return
NULL
;
}
if
(
data
[
strlen
((
const
char
*
)
data
)
-
1
]
!=
'\\'
)
strcat
((
char
*
)
data
,
"
\\
"
);
...
...
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