InstallationLocations: Add missing static specifiers.

- Fixes a crash in find_paths() due to the InstallationLocations object getting overwritten.

Thanks to Chris Roberts for reporting.
This commit is contained in:
Rene Gollent 2013-11-26 21:45:02 -05:00
parent 754bbf4866
commit 09a8919213

View File

@ -87,8 +87,8 @@ public:
static InstallationLocations* Default()
{
char sBuffer[sizeof(InstallationLocations)];
InstallationLocations* sDefaultLocations
static char sBuffer[sizeof(InstallationLocations)];
static InstallationLocations* sDefaultLocations
= new(&sBuffer) InstallationLocations;
return sDefaultLocations;
}