From ebc8d899a763f8770ae6492f8b93611446547bd6 Mon Sep 17 00:00:00 2001 From: anders_k Date: Thu, 8 Jul 2021 18:31:50 +0000 Subject: [PATCH] Ignore error message inserts git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7277 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/zip2exe/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contrib/zip2exe/main.cpp b/Contrib/zip2exe/main.cpp index d5a137d8..659bef6b 100644 --- a/Contrib/zip2exe/main.cpp +++ b/Contrib/zip2exe/main.cpp @@ -375,7 +375,7 @@ void ErrorMessage(const TCHAR *str) //display detailed error info { LPVOID msg; FormatMessage( - FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, + FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language