mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 17:12:47 +08:00
[libsndfile] fixed missing return !
This commit is contained in:
parent
72fdd294b0
commit
395829c545
@ -23,6 +23,7 @@ vcpkg_apply_patches(
|
|||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libsndfile-6830c421899e32f8d413a903a21a9b6cf384d369
|
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libsndfile-6830c421899e32f8d413a903a21a9b6cf384d369
|
||||||
PATCHES
|
PATCHES
|
||||||
"${CMAKE_CURRENT_LIST_DIR}/uwp-createfile-getfilesize.patch"
|
"${CMAKE_CURRENT_LIST_DIR}/uwp-createfile-getfilesize.patch"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/uwp-createfile-getfilesize-addendum.patch"
|
||||||
)
|
)
|
||||||
|
|
||||||
if (VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
if (VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
||||||
|
13
ports/libsndfile/uwp-createfile-getfilesize-addendum.patch
Normal file
13
ports/libsndfile/uwp-createfile-getfilesize-addendum.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/file_io.c b/src/file_io.c
|
||||||
|
index 47351bc..54741c9 100644
|
||||||
|
--- a/src/file_io.c
|
||||||
|
+++ b/src/file_io.c
|
||||||
|
@@ -799,6 +799,8 @@ psf_open_handle (PSF_FILE * pfile)
|
||||||
|
|
||||||
|
if (handle == INVALID_HANDLE_VALUE)
|
||||||
|
return NULL;
|
||||||
|
+
|
||||||
|
+ return handle;
|
||||||
|
#else
|
||||||
|
if (pfile->use_wchar)
|
||||||
|
handle = CreateFileW (
|
Loading…
Reference in New Issue
Block a user