[D3D9][ARPING] Add missing va_start() and va_end() (#371)
[reactos.git] / dll / directx / d3d9 / d3d9_helpers.c
index 6231f40..2747eab 100644 (file)
@@ -48,6 +48,7 @@ HRESULT SafeFormatString(OUT LPSTR Buffer, IN DWORD BufferSize, IN LPCSTR Format
 
     va_start(vargs, FormatString);
     BytesWritten = _vsnprintf(Buffer, BufferSize-1, FormatString, vargs);
+    va_end(vargs);
 
     if (BytesWritten < BufferSize)
         return DDERR_GENERIC;