ULONG type replaced

This commit is contained in:
alexeevdv
2015-02-15 18:28:27 +03:00
parent eb96e5ecfe
commit 087ef7674b
22 changed files with 133 additions and 134 deletions
+4 -4
View File
@@ -37,7 +37,7 @@ void CFalloutScript::Serialize(CArchive& ar)
// Sections with variable sizes
ar.Flush();
ULONG ullCurrentOffset = ar.GetFile()->GetPosition();
uint32_t ullCurrentOffset = ar.GetFile()->GetPosition();
// Load globals
m_GlobalVar.RemoveAll();
@@ -60,7 +60,7 @@ void CFalloutScript::Serialize(CArchive& ar)
if (!HeaderTail.IsEmpty())
{
INT_PTR nIndexOfStart = GetIndexOfProc("start");
ULONG ulStartProcAddress = (nIndexOfStart != -1) ? m_ProcTable[nIndexOfStart].m_ulBodyOffset : 18;
uint32_t ulStartProcAddress = (nIndexOfStart != -1) ? m_ProcTable[nIndexOfStart].m_ulBodyOffset : 18;
opcode = HeaderTail[HeaderTail.GetUpperBound()];
@@ -196,8 +196,8 @@ void CFalloutScript::Serialize(CArchive& ar)
for(INT_PTR i = 0; i < m_ProcTable.GetSize(); i++)
{
printf(" Procedure: %d\r", i);
ULONG ulOffset = m_ProcTable[i].m_ulBodyOffset;
ULONG ulSize = m_ProcTable.GetSizeOfProc(i);
uint32_t ulOffset = m_ProcTable[i].m_ulBodyOffset;
uint32_t ulSize = m_ProcTable.GetSizeOfProc(i);
ar.Flush();
ar.GetFile()->Seek(ulOffset, CFile::begin);