summaryrefslogtreecommitdiff
path: root/zen/file_error.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/file_error.h')
-rw-r--r--zen/file_error.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zen/file_error.h b/zen/file_error.h
index f41a878a..61a2e89c 100644
--- a/zen/file_error.h
+++ b/zen/file_error.h
@@ -39,6 +39,7 @@ DEFINE_NEW_FILE_ERROR(ErrorDifferentVolume);
//CAVEAT: thread-local Win32 error code is easily overwritten => evaluate *before* making any (indirect) system calls:
//-> MinGW + Win XP: "throw" statement allocates memory to hold the exception object => error code is cleared
//-> VC 2015, Debug: std::wstring allocator internally calls ::FlsGetValue() => error code is cleared
+// https://connect.microsoft.com/VisualStudio/feedback/details/1775690/calling-operator-new-may-set-lasterror-to-0
#ifdef _MSC_VER
#define THROW_LAST_FILE_ERROR(msg, functionName) \
do \
bgstack15