summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2008-09-01 12:11:08 +0000
committernakeee <nakeee@gmail.com>2008-09-01 12:11:08 +0000
commit4bbfff3cac6d4f435df2de125c96f1f08f44463f (patch)
treee9f64dc9932f62645e9a6387d48ac27dd2cd673d /Source/Core/Common
parentcad45aea724b8addacce18e99eec8bc4a170cbb2 (diff)
many warning fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@422 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Src/FileUtil.cpp1
-rw-r--r--Source/Core/Common/Src/MappedFile.cpp8
2 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp
index bca161268c..f6c6b75710 100644
--- a/Source/Core/Common/Src/FileUtil.cpp
+++ b/Source/Core/Common/Src/FileUtil.cpp
@@ -80,5 +80,6 @@ bool File::CreateDir(const std::string &path)
return false;
#else
// TODO: Insert POSIX code here.
+ return true;
#endif
}
diff --git a/Source/Core/Common/Src/MappedFile.cpp b/Source/Core/Common/Src/MappedFile.cpp
index 9142303adc..e22e121722 100644
--- a/Source/Core/Common/Src/MappedFile.cpp
+++ b/Source/Core/Common/Src/MappedFile.cpp
@@ -158,7 +158,7 @@ void CMappedFile::Close()
}
-u8* CMappedFile::Lock(u64 offset, u64 size)
+u8* CMappedFile::Lock(u64 offset, u64 _size)
{
#ifdef _WIN32
if (hFile != INVALID_HANDLE_VALUE)
@@ -168,9 +168,9 @@ u8* CMappedFile::Lock(u64 offset, u64 size)
{
u64 realOffset = offset & ~(granularity - 1);
s64 difference = offset - realOffset;
- u64 fake_size = (difference + size + granularity - 1) & ~(granularity - 1);
+ u64 fake_size = (difference + _size + granularity - 1) & ~(granularity - 1);
#ifdef _WIN32
- u8* realPtr = (u8*)MapViewOfFile(hFileMapping, FILE_MAP_READ, (DWORD)(realOffset >> 32), (DWORD)realOffset, (SIZE_T)(size));
+ u8* realPtr = (u8*)MapViewOfFile(hFileMapping, FILE_MAP_READ, (DWORD)(realOffset >> 32), (DWORD)realOffset, (SIZE_T)(_size));
if (realPtr == NULL)
{
@@ -192,7 +192,7 @@ u8* CMappedFile::Lock(u64 offset, u64 size)
//add to map
lockMap[fakePtr] = realPtr;
#ifndef _WIN32
- sizeMap[fakePtr] = size + difference;
+ sizeMap[fakePtr] = _size + difference;
#endif
return(fakePtr);
}