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/Common/BootEncryption.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Common/BootEncryption.h') diff --git a/src/Common/BootEncryption.h b/src/Common/BootEncryption.h index a73ce6fc..e8b57211 100644 --- a/src/Common/BootEncryption.h +++ b/src/Common/BootEncryption.h @@ -26,7 +26,7 @@ namespace VeraCrypt File (string path,bool readOnly = false, bool create = false); virtual ~File () { Close(); } - void CheckOpened () { if (!FileOpen) { SetLastError (LastError); throw SystemException ();} } + void CheckOpened (const char* srcPos) { if (!FileOpen) { SetLastError (LastError); throw SystemException (srcPos);} } void Close (); DWORD Read (byte *buffer, DWORD size); void Write (byte *buffer, DWORD size); -- cgit v1.2.3