Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: sandbox/win/sandbox_poc/main_ui_window.cc

Issue 1168113007: use va_start, not [_]_crt_va_start (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/sandbox_poc/main_ui_window.cc
diff --git a/sandbox/win/sandbox_poc/main_ui_window.cc b/sandbox/win/sandbox_poc/main_ui_window.cc
index 2a4fe11622945abcfa5e265894a3dfa5a028920c..6c5d17727a0d8d94ee14eff7e4c421d57f456143 100644
--- a/sandbox/win/sandbox_poc/main_ui_window.cc
+++ b/sandbox/win/sandbox_poc/main_ui_window.cc
@@ -5,6 +5,7 @@
#include <windows.h>
#include <CommCtrl.h>
#include <commdlg.h>
+#include <stdarg.h>
#include <time.h>
#include <windowsx.h>
#include <atlbase.h>
@@ -624,11 +625,7 @@ void MainUIWindow::AddDebugMessage(const wchar_t* format, ...) {
const int kMaxDebugBuffSize = 1024;
va_list arg_list;
-#if _MSC_VER >= 1900
- __crt_va_start(arg_list, format);
-#else
- _crt_va_start(arg_list, format);
-#endif
+ va_start(arg_list, format);
wchar_t text[kMaxDebugBuffSize + 1];
vswprintf_s(text, kMaxDebugBuffSize, format, arg_list);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698