summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-09-16 18:48:21 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-09-16 18:48:21 +0000
commitd88b5f9b27c3ebca45ce026d0b6188b5ad565a66 (patch)
treec6878dc7a9708f3e05638f9dab36d68a39c8c312
parente34523ab27fcd52225f30969d31382194f017125 (diff)
SetDllDirectory: do no choke on NT or 98SE with KernelEx NT API (James Blough)
-rw-r--r--src/htsmodules.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/htsmodules.c b/src/htsmodules.c
index 1e971eb..921c598 100644
--- a/src/htsmodules.c
+++ b/src/htsmodules.c
@@ -250,7 +250,12 @@ void htspe_init(void) {
"If this parameter is an empty string (""), the call removes the
current directory from the default DLL search order" */
if (!SetDllDirectory("")) {
- assertf(!"SetDllDirectory failed");
+ const DWORD dwVersion = GetVersion();
+ const DWORD dwMajorVersion = (DWORD)(LOBYTE(LOWORD(dwVersion)));
+ /* Do no choke on NT or 98SE with KernelEx NT API (James Blough) */
+ if (dwMajorVersion >= 5) {
+ assertf(!"SetDllDirectory failed");
+ }
}
#endif