diff --git a/src/msw/graphicsd2d.cpp b/src/msw/graphicsd2d.cpp index da189458a8..f0b3e9debe 100644 --- a/src/msw/graphicsd2d.cpp +++ b/src/msw/graphicsd2d.cpp @@ -1452,7 +1452,7 @@ public: ULONG STDMETHODCALLTYPE Release(void) wxOVERRIDE { - wxCHECK2_MSG(m_refCount > 0, 0, "Unbalanced number of calls to Release"); + wxCHECK_MSG(m_refCount > 0, 0, "Unbalanced number of calls to Release"); ULONG refCount = InterlockedDecrement(&m_refCount); if (m_refCount == 0)