This commit is contained in:
Birunthan Mohanathas 2012-01-03 15:29:37 +00:00
parent 261ecc8c91
commit 8e629507df

View File

@ -576,7 +576,8 @@ bool ReadArchive()
// Get temp file path for the configuration file/bitmap
WCHAR tempFile[MAX_PATH];
ExpandEnvironmentStrings(L"%TEMP%\\~RainstallerData.TMP", tempFile, MAX_PATH);
GetTempPath(MAX_PATH, tempFile);
GetTempFileName(tempFile, L"dat", 0, tempFile);
char cBuffer[MAX_PATH * 3];
WCHAR buffer[MAX_PATH];