summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
Diffstat (limited to 'setup_native')
-rw-r--r--setup_native/source/win32/customactions/shellextensions/checkpatches.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx b/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx
index 9bad21377b0b..d573161fb11b 100644
--- a/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx
@@ -20,9 +20,6 @@
#include "shlxtmsi.hxx"
#include <strsafe.h>
#include <systools/win32/uwinapi.h>
-#ifdef DEBUG
-#include <sal/macros.h>
-#endif
#ifdef DEBUG
inline void OutputDebugStringFormatW( PCWSTR pFormat, ... )
@@ -31,7 +28,7 @@ inline void OutputDebugStringFormatW( PCWSTR pFormat, ... )
va_list args;
va_start( args, pFormat );
- StringCchVPrintfW( buffer, SAL_N_ELEMENTS(buffer), pFormat, args );
+ StringCchVPrintfW( buffer, std::size(buffer), pFormat, args );
OutputDebugStringW( buffer );
va_end(args);
}