OSDN Git Service

nvdaHelperRemote: Make sure that minhook.dll really gets unloaded properly when apiHo...
authorMichael Curran <mick@kulgan.net>
Thu, 19 Apr 2012 23:00:51 +0000 (09:00 +1000)
committerMichael Curran <mick@kulgan.net>
Thu, 19 Apr 2012 23:00:51 +0000 (09:00 +1000)
commitd655ccaf4d6c57c3bf42b51933f342cd97390df0
treed78060549613b3b929c458781b641e488acf05fc
parent29bddfafb0bd94e002d1d942cc4e1dc1669f6df0
nvdaHelperRemote: Make sure that minhook.dll really gets unloaded properly when apiHooks_terminate is called. This means calling FreeLibrary to match our explicit LoadLibrary in apiHooks_initialize, telling the linker to support delayLoad unloading with /delay:unload, and also by calling __FUnloadDelayLoadedDLL2("minHook.dll") to cleanly unload the delay loaded minHook.dll. Also pass /delay:nobind to the linker as this can speed up loading a bit as we never need to supported pre-bounded dlls, in fact this would be bad for minhook anyway.
nvdaHelper/remote/apiHook.cpp
nvdaHelper/remote/sconscript