[openjk] 14/19: Shared: Fix debug engine legacy dll loading wrong name.
Simon McVittie
smcv at debian.org
Sat Aug 5 10:52:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository openjk.
commit 45a05fe1fae2fb9ef2c47a0bb96fd94711f0df97
Author: Ensiform <ensiform at gmail.com>
Date: Sun Jul 16 18:40:47 2017 -0500
Shared: Fix debug engine legacy dll loading wrong name.
---
shared/sys/sys_main.cpp | 2 +-
shared/sys/sys_win32.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/shared/sys/sys_main.cpp b/shared/sys/sys_main.cpp
index ac50708..7d1e1fa 100644
--- a/shared/sys/sys_main.cpp
+++ b/shared/sys/sys_main.cpp
@@ -469,7 +469,7 @@ void *Sys_LoadLegacyGameDll( const char *name, VMMainProc **vmMain, SystemCallPr
Com_sprintf (filename, sizeof(filename), "%s" ARCH_STRING DLL_EXT, name);
#if defined(_DEBUG)
- libHandle = Sys_LoadLibrary( name );
+ libHandle = Sys_LoadLibrary( filename );
if ( !libHandle )
#endif
{
diff --git a/shared/sys/sys_win32.cpp b/shared/sys/sys_win32.cpp
index 53ca529..f0b09d2 100644
--- a/shared/sys/sys_win32.cpp
+++ b/shared/sys/sys_win32.cpp
@@ -505,7 +505,7 @@ UnpackDLLResult Sys_UnpackDLL(const char *name)
{
UnpackDLLResult result = {};
void *data;
- int len = FS_ReadFile(name, &data);
+ long len = FS_ReadFile(name, &data);
if (len >= 1)
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/openjk.git
More information about the Pkg-games-commits
mailing list