Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flac
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hugo Beauzée-Luyssen
flac
Commits
972454ed
Commit
972454ed
authored
Jan 05, 2018
by
Alberto Fustinoni
Committed by
Erik de Castro Lopo
Jan 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UWP build fix
Signed-off-by:
Erik de Castro Lopo
<
erikd@mega-nerd.com
>
parent
20a2100d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/libFLAC/windows_unicode_filenames.c
src/libFLAC/windows_unicode_filenames.c
+11
-0
No files found.
src/libFLAC/windows_unicode_filenames.c
View file @
972454ed
...
...
@@ -185,6 +185,16 @@ int flac_internal_rename_utf8(const char *oldname, const char *newname)
HANDLE
WINAPI
flac_internal_CreateFile_utf8
(
const
char
*
lpFileName
,
DWORD
dwDesiredAccess
,
DWORD
dwShareMode
,
LPSECURITY_ATTRIBUTES
lpSecurityAttributes
,
DWORD
dwCreationDisposition
,
DWORD
dwFlagsAndAttributes
,
HANDLE
hTemplateFile
)
{
#if _MSC_VER > 1900 && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
wchar_t
*
wname
;
HANDLE
handle
=
INVALID_HANDLE_VALUE
;
if
((
wname
=
wchar_from_utf8
(
lpFileName
))
!=
NULL
)
{
handle
=
CreateFile2
(
wname
,
dwDesiredAccess
,
dwShareMode
,
CREATE_ALWAYS
,
NULL
);
free
(
wname
);
}
#else
if
(
!
utf8_filenames
)
{
return
CreateFileA
(
lpFileName
,
dwDesiredAccess
,
dwShareMode
,
lpSecurityAttributes
,
dwCreationDisposition
,
dwFlagsAndAttributes
,
hTemplateFile
);
}
else
{
...
...
@@ -198,4 +208,5 @@ HANDLE WINAPI flac_internal_CreateFile_utf8(const char *lpFileName, DWORD dwDesi
return
handle
;
}
#endif
}
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