[libsndfile] fixed missing return !

This commit is contained in:
Aybe 2017-11-21 06:54:11 +01:00
parent 72fdd294b0
commit 395829c545
2 changed files with 14 additions and 0 deletions

View File

@ -23,6 +23,7 @@ vcpkg_apply_patches(
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libsndfile-6830c421899e32f8d413a903a21a9b6cf384d369
PATCHES
"${CMAKE_CURRENT_LIST_DIR}/uwp-createfile-getfilesize.patch"
"${CMAKE_CURRENT_LIST_DIR}/uwp-createfile-getfilesize-addendum.patch"
)
if (VCPKG_CRT_LINKAGE STREQUAL "dynamic")

View 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 (