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

Unified Diff: src/ports/SkDebug_win.cpp

Issue 12457019: Restart va_list in SkDebugf on win32. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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: src/ports/SkDebug_win.cpp
===================================================================
--- src/ports/SkDebug_win.cpp (revision 8018)
+++ src/ports/SkDebug_win.cpp (working copy)
@@ -19,10 +19,14 @@
void SkDebugf(const char format[], ...) {
char buffer[kBufferSize + 1];
va_list args;
+
va_start(args, format);
- vsnprintf(buffer, kBufferSize, format, args);
vprintf(format, args);
va_end(args);
+ va_start(args, format);
+ vsnprintf(buffer, kBufferSize, format, args);
+ va_end(args);
+
OutputDebugStringA(buffer);
}
« 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