In case the crash report dll can't be loaded, don't set a vectored exception handler
commit386756e1a4449d5d5f0a5b143e14b98af7837b2f
authorSven Strickroth <email@cs-ware.de>
Thu, 11 Oct 2012 09:00:26 +0000 (11 11:00 +0200)
committerSven Strickroth <email@cs-ware.de>
Thu, 11 Oct 2012 09:00:26 +0000 (11 11:00 +0200)
tree405eb2e4e258951b60fce7fcb81cd760d6cd1ef5
parentba7be38d7c8acd7f1723092c648d19c97c07664b
In case the crash report dll can't be loaded, don't set a vectored exception handler

TortoiseGit(32).dll registers an exception handler when loaded, but does not remove the handler when the dll is unloaded. This means that if an application loads that dll (by using certain common shell APIs) and the dll gets unloaded soon after, then an exception happens in that application, that application crashes: the exception handler points to an address that doesn't exist anymore.

Based on TortoiseSVN revision #23222.

(fixes issue #1265)

Signed-off-by: Sven Strickroth <email@cs-ware.de>
src/Changelog.txt
src/Utils/CrashReport.h