aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/os
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/os')
-rw-r--r--xorg-server/os/log.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/xorg-server/os/log.c b/xorg-server/os/log.c
index f6410379c..56d693710 100644
--- a/xorg-server/os/log.c
+++ b/xorg-server/os/log.c
@@ -610,8 +610,12 @@ FatalError(const char *f, ...)
else
ErrorF("\nFatal server error:\n");
+#ifdef _MSC_VER
+ va_start(args, f);
+#else
/* Make a copy for OsVendorFatalError */
va_copy(args2, args);
+#endif
#ifdef __APPLE__
{
@@ -629,6 +633,9 @@ FatalError(const char *f, ...)
VErrorF(f, args);
va_end(args);
ErrorF("\n");
+#ifdef _MSC_VER
+ va_start(args2, f);
+#endif
if (!beenhere)
OsVendorFatalError(f, args2);
va_end(args2);