diff options
Diffstat (limited to 'src/Common/Format.c')
-rw-r--r-- | src/Common/Format.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Common/Format.c b/src/Common/Format.c index 3ebfef1e..14c91a33 100644 --- a/src/Common/Format.c +++ b/src/Common/Format.c @@ -30,8 +30,12 @@ #include "Format/Tcformat.h"
#include <Strsafe.h>
+#ifndef SRC_POS
+#define SRC_POS (__FUNCTION__ ":" TC_TO_STRING(__LINE__))
+#endif
+
int FormatWriteBufferSize = 1024 * 1024;
static uint32 FormatSectorSize = 0;
@@ -285,9 +289,9 @@ begin_format: }
}
else
{
- handleWin32Error (volParams->hwndDlg);
+ handleWin32Error (volParams->hwndDlg, SRC_POS);
Error ("CANT_ACCESS_VOL", hwndDlg);
nStatus = ERR_DONT_REPORT;
goto error;
}
@@ -892,9 +896,9 @@ static void __cdecl FormatWriteThreadProc (void *arg) while (!WriteThreadExitRequested)
{
if (WaitForSingleObject (WriteBufferFullEvent, INFINITE) == WAIT_FAILED)
{
- handleWin32Error (NULL);
+ handleWin32Error (NULL, SRC_POS);
break;
}
if (WriteThreadExitRequested)
@@ -906,9 +910,9 @@ static void __cdecl FormatWriteThreadProc (void *arg) WriteRequestResult = ERROR_SUCCESS;
if (!SetEvent (WriteBufferEmptyEvent))
{
- handleWin32Error (NULL);
+ handleWin32Error (NULL, SRC_POS);
break;
}
}
|