diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-07-05 18:15:41 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-07-06 01:19:21 +0200 |
commit | 724043be0b9ed68382c49c54b4750ddeaebe81c4 (patch) | |
tree | f93ab6d2b1597b9fd2c3c354f0c730b805cc3c57 /src/ExpandVolume/InitDataArea.c | |
parent | c3b77fba25539c433c882d980169f2c68329e996 (diff) | |
download | VeraCrypt-724043be0b9ed68382c49c54b4750ddeaebe81c4.tar.gz VeraCrypt-724043be0b9ed68382c49c54b4750ddeaebe81c4.zip |
Windows: Display source location of errors in order to help diagnose issues reported by users
Diffstat (limited to 'src/ExpandVolume/InitDataArea.c')
-rw-r--r-- | src/ExpandVolume/InitDataArea.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ExpandVolume/InitDataArea.c b/src/ExpandVolume/InitDataArea.c index a3793e86..c1eb6bd2 100644 --- a/src/ExpandVolume/InitDataArea.c +++ b/src/ExpandVolume/InitDataArea.c @@ -59,6 +59,10 @@ Original legal notice of the TrueCrypt source: #include "InitDataArea.h" +#ifndef SRC_POS
+#define SRC_POS (__FUNCTION__ ":" TC_TO_STRING(__LINE__))
+#endif + int FormatWriteBufferSize = 1024 * 1024; static uint32 FormatSectorSize = 0; @@ -226,7 +230,7 @@ static void __cdecl FormatWriteThreadProc (void *arg) { if (WaitForSingleObject (WriteBufferFullEvent, INFINITE) == WAIT_FAILED) { - handleWin32Error (NULL); + handleWin32Error (NULL, SRC_POS); break; } @@ -240,7 +244,7 @@ static void __cdecl FormatWriteThreadProc (void *arg) if (!SetEvent (WriteBufferEmptyEvent)) { - handleWin32Error (NULL); + handleWin32Error (NULL, SRC_POS); break; } } |