1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +00:00

Fixed a minor AU build error and removed some old macros.

This commit is contained in:
Julian Storer 2010-03-10 13:04:24 +00:00
parent 5419ebc520
commit 858a758aee
24 changed files with 1037 additions and 1172 deletions

View file

@ -429,11 +429,9 @@ bool File::isOnRemovableDrive() const
}
//==============================================================================
#define MAX_PATH_CHARS (MAX_PATH + 256)
static const File juce_getSpecialFolderPath (int type)
{
WCHAR path [MAX_PATH_CHARS];
WCHAR path [MAX_PATH + 256];
if (SHGetSpecialFolderPath (0, path, type, 0))
return File (String (path));
@ -493,9 +491,9 @@ const File JUCE_CALLTYPE File::getSpecialLocation (const SpecialLocationType typ
{
HINSTANCE moduleHandle = (HINSTANCE) PlatformUtilities::getCurrentModuleInstanceHandle();
WCHAR dest [MAX_PATH_CHARS];
WCHAR dest [MAX_PATH + 256];
dest[0] = 0;
GetModuleFileName (moduleHandle, dest, MAX_PATH_CHARS);
GetModuleFileName (moduleHandle, dest, numElementsInArray (dest));
return File (String (dest));
}
break;
@ -511,9 +509,9 @@ const File JUCE_CALLTYPE File::getSpecialLocation (const SpecialLocationType typ
//==============================================================================
const File File::getCurrentWorkingDirectory()
{
WCHAR dest [MAX_PATH_CHARS];
WCHAR dest [MAX_PATH + 256];
dest[0] = 0;
GetCurrentDirectory (MAX_PATH_CHARS, dest);
GetCurrentDirectory (numElementsInArray (dest), dest);
return File (String (dest));
}