Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
455
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
bda86a1b
Commit
bda86a1b
authored
8 years ago
by
Hugo Beauzée-Luyssen
Browse files
Options
Downloads
Patches
Plain Diff
contrib: flac: winrt: Remove a call to CreateFileA
parent
db7d6bbf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/src/flac/no-createfilea.patch
+22
-0
22 additions, 0 deletions
contrib/src/flac/no-createfilea.patch
contrib/src/flac/rules.mak
+1
-0
1 addition, 0 deletions
contrib/src/flac/rules.mak
with
23 additions
and
0 deletions
contrib/src/flac/no-createfilea.patch
0 → 100644
+
22
−
0
View file @
bda86a1b
--- flac/src/libFLAC/windows_unicode_filenames.c.orig 2017-01-05 16:36:45.696358168 +0100
+++ flac/src/libFLAC/windows_unicode_filenames.c 2017-01-05 17:03:41.052478210 +0100
@@ -35,6 +35,7 @@
#include <io.h>
#include "share/windows_unicode_filenames.h"
+#include <winapifamily.h>
/* convert UTF-8 back to WCHAR. Caller is responsible for freeing memory */
static wchar_t *wchar_from_utf8(const char *str)
@@ -186,7 +187,11 @@
HANDLE WINAPI flac_internal_CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
{
if (!utf8_filenames) {
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
return CreateFileA(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
+#else
+ return INVALID_HANDLE_VALUE;
+#endif
} else {
wchar_t *wname;
HANDLE handle = INVALID_HANDLE_VALUE;
This diff is collapsed.
Click to expand it.
contrib/src/flac/rules.mak
+
1
−
0
View file @
bda86a1b
...
...
@@ -18,6 +18,7 @@ flac: flac-$(FLAC_VERSION).tar.xz .sum-flac
ifdef
HAVE_WINSTORE
$(
APPLY
)
$(
SRC
)
/flac/console_write.patch
$(
APPLY
)
$(
SRC
)
/flac/remove_blocking_code_useless_flaclib.patch
$(
APPLY
)
$(
SRC
)
/flac/no-createfilea.patch
endif
ifdef
HAVE_DARWIN_OS
cd
$(
UNPACK_DIR
)
&&
sed
-e
's,-dynamiclib,-dynamiclib -arch
$(
ARCH
)
,'
-i
.orig configure
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment