diff --git a/plugins/mpq/fs_mpq.c b/plugins/mpq/fs_mpq.c index a1af7c54e..8be348b23 100644 --- a/plugins/mpq/fs_mpq.c +++ b/plugins/mpq/fs_mpq.c @@ -14,7 +14,7 @@ static size_t activempqcount; //number of active archives. we can't unload the dll while we still have files open. #ifdef MULTITHREAD static plugthreadfuncs_t *threading; -#define Sys_CreateMutex if(threading)threading->CreateMutex +#define Sys_CreateMutex() (threading?threading->CreateMutex():NULL) #define Sys_LockMutex if(threading)threading->LockMutex #define Sys_UnlockMutex if(threading)threading->UnlockMutex #define Sys_DestroyMutex if(threading)threading->DestroyMutex diff --git a/plugins/plugin.def b/plugins/plugin.def index 2ee748e73..1d0f3dee0 100644 --- a/plugins/plugin.def +++ b/plugins/plugin.def @@ -1,3 +1,2 @@ EXPORTS - vmMain - dllEntry + FTEPlug_Init