summaryrefslogtreecommitdiff
path: root/include/m_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/m_string.h')
-rw-r--r--include/m_string.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/m_string.h b/include/m_string.h
index 82e279f31f..ae769e52bc 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -607,18 +607,21 @@ public:
return _vscwprintf(pszFormat, args);
}
-#pragma warning(push)
-#pragma warning(disable : 4995 4996)
static int __stdcall Format(LPWSTR pszBuffer, LPCWSTR pszFormat, va_list args)
{
+ #pragma warning(push)
+ #pragma warning(disable : 4996)
return vswprintf(pszBuffer, pszFormat, args);
+ #pragma warning(pop)
}
static int __stdcall Format(LPWSTR pszBuffer, size_t nLength, LPCWSTR pszFormat, va_list args)
{
+ #pragma warning(push)
+ #pragma warning(disable : 4996)
return _vsnwprintf(pszBuffer, nLength, pszFormat, args);
+ #pragma warning(pop)
}
-#pragma warning(pop)
static int __stdcall GetBaseTypeLength(LPCSTR pszSrc)
{