Fix some random warnings.
This commit is contained in:
parent
f865450b5a
commit
59ec1fe180
|
@ -41,7 +41,7 @@ static bool IsGteVista()
|
||||||
|
|
||||||
VER_SET_CONDITION(dwlConditionMask, VER_MAJORVERSION, VER_GREATER_EQUAL);
|
VER_SET_CONDITION(dwlConditionMask, VER_MAJORVERSION, VER_GREATER_EQUAL);
|
||||||
|
|
||||||
return VerifyVersionInfo(&osvi, VER_MAJORVERSION, dwlConditionMask);
|
return VerifyVersionInfo(&osvi, VER_MAJORVERSION, dwlConditionMask) != FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ void EnsureTmpInputSize(size_t bound)
|
||||||
if (tmpInput != NULL)
|
if (tmpInput != NULL)
|
||||||
{
|
{
|
||||||
if (g_totalBytes > 0)
|
if (g_totalBytes > 0)
|
||||||
memcpy(newTmpInput, tmpInput, g_totalBytes);
|
memcpy(newTmpInput, tmpInput, (size_t)g_totalBytes);
|
||||||
delete[] tmpInput;
|
delete[] tmpInput;
|
||||||
}
|
}
|
||||||
tmpInput = newTmpInput;
|
tmpInput = newTmpInput;
|
||||||
|
@ -637,7 +637,7 @@ void RecordInput(SPADStatus *PadStatus, int controllerID)
|
||||||
g_bDiscChange = false;
|
g_bDiscChange = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
EnsureTmpInputSize(g_currentByte + 8);
|
EnsureTmpInputSize((size_t)(g_currentByte + 8));
|
||||||
memcpy(&(tmpInput[g_currentByte]), &g_padState, 8);
|
memcpy(&(tmpInput[g_currentByte]), &g_padState, 8);
|
||||||
g_currentByte += 8;
|
g_currentByte += 8;
|
||||||
g_totalBytes = g_currentByte;
|
g_totalBytes = g_currentByte;
|
||||||
|
@ -661,7 +661,7 @@ void RecordWiimote(int wiimote, u8 *data, u8 size)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
InputUpdate();
|
InputUpdate();
|
||||||
EnsureTmpInputSize(g_currentByte + size + 1);
|
EnsureTmpInputSize((size_t)(g_currentByte + size + 1));
|
||||||
tmpInput[g_currentByte++] = size;
|
tmpInput[g_currentByte++] = size;
|
||||||
memcpy(&(tmpInput[g_currentByte]), data, size);
|
memcpy(&(tmpInput[g_currentByte]), data, size);
|
||||||
g_currentByte += size;
|
g_currentByte += size;
|
||||||
|
|
Loading…
Reference in New Issue