summaryrefslogtreecommitdiff
path: root/src/win32
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2006-02-24 22:04:35 +0000
committerTim Angus <tim@ngus.net>2006-02-24 22:04:35 +0000
commite9456d7a58fc721cc5c931838399d9734b6fd971 (patch)
treeece21f7411a55bb9bfec20a5e516d589726aa272 /src/win32
parent5c520de1c5d9fe71dadea68767535ce27add2dba (diff)
* Merged ioq3-r584
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/win_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/win32/win_main.c b/src/win32/win_main.c
index 73d0f485..8b390afd 100644
--- a/src/win32/win_main.c
+++ b/src/win32/win_main.c
@@ -527,10 +527,10 @@ extern char *FS_BuildOSPath( const char *base, const char *game, const char *qp
// fqpath param added 7/20/02 by T.Ray - Sys_LoadDll is only called in vm.c at this time
// fqpath will be empty if dll not loaded, otherwise will hold fully qualified path of dll module loaded
// fqpath buffersize must be at least MAX_QPATH+1 bytes long
-void * QDECL Sys_LoadDll( const char *name, char *fqpath , long (QDECL **entryPoint)(long, ...),
- long (QDECL *systemcalls)(long, ...) ) {
+void * QDECL Sys_LoadDll( const char *name, char *fqpath , intptr_t (QDECL **entryPoint)(intptr_t, ...),
+ intptr_t (QDECL *systemcalls)(intptr_t, ...) ) {
HINSTANCE libHandle;
- void (QDECL *dllEntry)( long (QDECL *syscallptr)(long, ...) );
+ void (QDECL *dllEntry)( intptr_t (QDECL *syscallptr)(intptr_t, ...) );
char *basepath;
char *cdpath;
char *gamedir;
@@ -607,8 +607,8 @@ void * QDECL Sys_LoadDll( const char *name, char *fqpath , long (QDECL **entryPo
}
#endif
- dllEntry = ( void (QDECL *)(long (QDECL *)( long, ... ) ) )GetProcAddress( libHandle, "dllEntry" );
- *entryPoint = (long (QDECL *)(long,...))GetProcAddress( libHandle, "vmMain" );
+ dllEntry = ( void (QDECL *)(intptr_t (QDECL *)( intptr_t, ... ) ) )GetProcAddress( libHandle, "dllEntry" );
+ *entryPoint = (intptr_t (QDECL *)(intptr_t,...))GetProcAddress( libHandle, "vmMain" );
if ( !*entryPoint || !dllEntry ) {
FreeLibrary( libHandle );
return NULL;