]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
call SetDllDirectory on Win32 too
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 27 May 2011 16:58:46 +0000 (16:58 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 27 May 2011 16:54:09 +0000 (18:54 +0200)
commit37c0274acb349276dad6c2c8c720fd8330f66749
treea632b8c5805dd64deda2c13d10bd6ca8c3590d6e
parentd95375e7e5107fa1f9795796f51ee62d5b8605c4
call SetDllDirectory on Win32 too

Usage: put DLLs in a bin32/ subdir for that
If not done, binaries work as before.

This is the only way to have a 32bit and 64bit executable version in the same
directory! Otherwise Windows will abort DLL search at the 32bit DLL, which
fails to load into a 64bit process.

NOTE: this requires WinXP SP1 and above. To compile with this functionality
disabled, compile with -DDONT_USE_SETDLLDIRECTORY added to the CFLAGS.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11168 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=fc8e8ca74dbb1cf8729e193ae25652daea9416a8
sys_shared.c