aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/utils/PathUtil.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-09 04:09:15 +0200
committerEinar Johan Trøan Sømåen2012-07-09 04:09:15 +0200
commit7c984d24a8cd2ebe5a7860e21cda392edada34b3 (patch)
tree36d6cd53884107f29a451ffe1b06370e3fdc7f67 /engines/wintermute/utils/PathUtil.cpp
parent1eea9ad1a3ae577195363abe475cfbbee33d153b (diff)
downloadscummvm-rg350-7c984d24a8cd2ebe5a7860e21cda392edada34b3.tar.gz
scummvm-rg350-7c984d24a8cd2ebe5a7860e21cda392edada34b3.tar.bz2
scummvm-rg350-7c984d24a8cd2ebe5a7860e21cda392edada34b3.zip
WINTERMUTE: Change RECT -> Common::Rect and POINT-> Common::Point, completing the removal of Windows-specifics in wintypes.h
Diffstat (limited to 'engines/wintermute/utils/PathUtil.cpp')
-rw-r--r--engines/wintermute/utils/PathUtil.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/wintermute/utils/PathUtil.cpp b/engines/wintermute/utils/PathUtil.cpp
index cfc3db916e..5c12a71c33 100644
--- a/engines/wintermute/utils/PathUtil.cpp
+++ b/engines/wintermute/utils/PathUtil.cpp
@@ -116,8 +116,8 @@ AnsiString PathUtil::getSafeLogFileName() {
AnsiString logFileName = getUserDirectory();
#ifdef __WIN32__
- char moduleName[MAX_PATH];
- ::GetModuleFileName(NULL, moduleName, MAX_PATH);
+ char moduleName[MAX_PATH_LENGTH];
+ ::GetModuleFileName(NULL, moduleName, MAX_PATH_LENGTH);
AnsiString fileName = GetFileNameWithoutExtension(moduleName) + ".log";
fileName = Combine("/Wintermute Engine/Logs/", fileName);
@@ -162,7 +162,7 @@ AnsiString PathUtil::getUserDirectory() {
AnsiString userDir = "./";
#if 0
#ifdef __WIN32__
- char buffer[MAX_PATH];
+ char buffer[MAX_PATH_LENGTH];
buffer[0] = '\0';
LPITEMIDLIST pidl = NULL;
LPMALLOC pMalloc;
@@ -178,14 +178,14 @@ AnsiString PathUtil::getUserDirectory() {
FSRef fileRef;
OSStatus error = FSFindFolder(kUserDomain, kApplicationSupportFolderType, true, &fileRef);
if (error == noErr) {
- char buffer[MAX_PATH];
+ char buffer[MAX_PATH_LENGTH];
error = FSRefMakePath(&fileRef, (UInt8 *)buffer, sizeof(buffer));
if (error == noErr)
userDir = buffer;
}
#elif __IPHONEOS__
- char path[MAX_PATH];
+ char path[MAX_PATH_LENGTH];
IOS_GetDataDir(path);
userDir = AnsiString(path);
#endif