mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 18:39:03 +08:00
658a8165a9
* [libflac] Bump to 1.4.2. - The license was incorrectly set to GFDL instead of BSD-3. See: https://github.com/xiph/flac#components - Remove patches that were merged upstream. - Stack protection and fortify source under mingw is checked upstream. - CMake config file location has changed. - Use vcpkg_install_copyright to install license. * [libflac] Add usage file. * [libflac] Update baseline.
17 lines
701 B
Diff
17 lines
701 B
Diff
diff --git a/src/share/win_utf8_io/win_utf8_io.c b/src/share/win_utf8_io/win_utf8_io.c
|
|
index bbb6a74a..8b20bbb7 100644
|
|
--- a/src/share/win_utf8_io/win_utf8_io.c
|
|
+++ b/src/share/win_utf8_io/win_utf8_io.c
|
|
@@ -110,7 +110,11 @@ int get_utf8_argv(int *argc, char ***argv)
|
|
char **utf8argv;
|
|
int ret, i;
|
|
|
|
+#if defined (WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
|
+ if ((handle = LoadPackagedLibrary("msvcrt.dll", 0)) == NULL) return 1;
|
|
+#else
|
|
if ((handle = LoadLibraryW(L"msvcrt.dll")) == NULL) return 1;
|
|
+#endif
|
|
if ((wgetmainargs = (wgetmainargs_t)GetProcAddress(handle, "__wgetmainargs")) == NULL) {
|
|
FreeLibrary(handle);
|
|
return 1;
|