Commit 6f1a7b41 authored by Pierre Ynard's avatar Pierre Ynard Committed by Jean-Baptiste Kempf

Temporarily work around crashing on Windows due to %zu

The printf functions on Windows don't support the z length modifier,
which can shift field arguments, and causes an unconditional crash in
modules.c on start-up. For now, strip it on Windows and have vlc work
again, until a better solution is found and applied.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5c96f1ca
...@@ -544,8 +544,14 @@ found_shortcut: ...@@ -544,8 +544,14 @@ found_shortcut:
/* Sort candidates by descending score */ /* Sort candidates by descending score */
qsort (p_list, count, sizeof (p_list[0]), modulecmp); qsort (p_list, count, sizeof (p_list[0]), modulecmp);
#ifdef WIN32
/* FIXME: Remove this hack after finding a general solution for %z's */
msg_Dbg( p_this, "looking for %s module: %u candidate%s", psz_capability,
count, count == 1 ? "" : "s" );
#else
msg_Dbg( p_this, "looking for %s module: %zu candidate%s", psz_capability, msg_Dbg( p_this, "looking for %s module: %zu candidate%s", psz_capability,
count, count == 1 ? "" : "s" ); count, count == 1 ? "" : "s" );
#endif
/* Parse the linked list and use the first successful module */ /* Parse the linked list and use the first successful module */
p_module = NULL; p_module = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment