mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
bug fixes from Overhaul:
- Data type changes - Templates removed git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -103,7 +103,7 @@ BOOLEAN DeleteMutex(UINT32 uiMutexIndex)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOLEAN EnterMutex(UINT32 uiMutexIndex, INT32 nLine, char *szFilename)
|
||||
BOOLEAN EnterMutex(UINT32 uiMutexIndex, INT32 nLine, STR8 szFilename)
|
||||
{
|
||||
switch (WaitForSingleObject(MutexTable[uiMutexIndex], INFINITE))
|
||||
{
|
||||
@@ -118,7 +118,7 @@ BOOLEAN EnterMutex(UINT32 uiMutexIndex, INT32 nLine, char *szFilename)
|
||||
}
|
||||
}
|
||||
|
||||
BOOLEAN EnterMutexWithTimeout(UINT32 uiMutexIndex, UINT32 uiTimeout, INT32 nLine, char *szFilename)
|
||||
BOOLEAN EnterMutexWithTimeout(UINT32 uiMutexIndex, UINT32 uiTimeout, INT32 nLine, STR8 szFilename)
|
||||
{
|
||||
switch (WaitForSingleObject(MutexTable[uiMutexIndex], uiTimeout))
|
||||
{
|
||||
@@ -132,7 +132,7 @@ BOOLEAN EnterMutexWithTimeout(UINT32 uiMutexIndex, UINT32 uiTimeout, INT32 nLine
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOLEAN LeaveMutex(UINT32 uiMutexIndex, INT32 nLine, char *szFilename)
|
||||
BOOLEAN LeaveMutex(UINT32 uiMutexIndex, INT32 nLine, STR8 szFilename)
|
||||
{
|
||||
if (ReleaseMutex(MutexTable[uiMutexIndex]) == FALSE)
|
||||
{
|
||||
@@ -201,19 +201,19 @@ BOOLEAN DeleteMutex(UINT32 uiMutexIndex)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOLEAN EnterMutex(UINT32 uiMutexIndex, INT32 nLine, char *szFilename)
|
||||
BOOLEAN EnterMutex(UINT32 uiMutexIndex, INT32 nLine, STR8 szFilename)
|
||||
{
|
||||
EnterCriticalSection(&MutexTable[uiMutexIndex]);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOLEAN EnterMutexWithTimeout(UINT32 uiMutexIndex, UINT32 uiTimeout, INT32 nLine, char *szFilename)
|
||||
BOOLEAN EnterMutexWithTimeout(UINT32 uiMutexIndex, UINT32 uiTimeout, INT32 nLine, STR8 szFilename)
|
||||
{
|
||||
EnterCriticalSection(&MutexTable[uiMutexIndex]);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOLEAN LeaveMutex(UINT32 uiMutexIndex, INT32 nLine, char *szFilename)
|
||||
BOOLEAN LeaveMutex(UINT32 uiMutexIndex, INT32 nLine, STR8 szFilename)
|
||||
{
|
||||
LeaveCriticalSection(&MutexTable[uiMutexIndex]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user