mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 11:28:26 -06:00
Windows: Display source location of errors in order to help diagnose issues reported by users
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user