From 724043be0b9ed68382c49c54b4750ddeaebe81c4 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 5 Jul 2015 18:15:41 +0200 Subject: Windows: Display source location of errors in order to help diagnose issues reported by users --- src/ExpandVolume/ExpandVolume.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ExpandVolume/ExpandVolume.c') diff --git a/src/ExpandVolume/ExpandVolume.c b/src/ExpandVolume/ExpandVolume.c index 5b9509be..9233340c 100644 --- a/src/ExpandVolume/ExpandVolume.c +++ b/src/ExpandVolume/ExpandVolume.c @@ -56,6 +56,10 @@ Original legal notice of the TrueCrypt source files: #include "ExpandVolume.h" #include "Resource.h" +#ifndef SRC_POS +#define SRC_POS (__FUNCTION__ ":" TC_TO_STRING(__LINE__)) +#endif + #define DEBUG_EXPAND_VOLUME #ifdef DEBUG_EXPAND_VOLUME @@ -987,7 +991,7 @@ void __cdecl volTransformThreadFunction (void *pExpandDlgParam) pParam->VolumePkcs5, pParam->VolumePin, pParam->newSize, pParam->bInitFreeSpace ); if (nStatus!=ERR_SUCCESS && nStatus!=ERR_USER_ABORT) - handleError (hwndDlg, nStatus); + handleError (hwndDlg, nStatus, SRC_POS); bVolTransformThreadCancel = FALSE; -- cgit v1.2.3