UE-19274/Crashes not being recorded in crash reporter for 4.9 on Windows 10 (Check common appdata for crashes, if local appdata is empty)

[CL 2637022 by Jaroslaw Surowiec in Main branch]
This commit is contained in:
Jaroslaw Surowiec
2015-07-29 11:00:15 -04:00
committed by Jaroslaw.Surowiec@epicgames.com
parent 4a4e68abb2
commit 56c015cd10

View File

@@ -129,6 +129,13 @@ FString FWindowsErrorReport::FindMostRecentErrorReport()
SHGetFolderPath(0, CSIDL_LOCAL_APPDATA, NULL, 0, LocalAppDataPath);
PlatformFile.IterateDirectory( *(FString(LocalAppDataPath) / TEXT("Microsoft/Windows/WER/ReportQueue")), ReportFinder);
if (ReportDirectory.Len() == 0)
{
TCHAR LocalAppDataPath[MAX_PATH];
SHGetFolderPath( 0, CSIDL_COMMON_APPDATA, NULL, 0, LocalAppDataPath );
PlatformFile.IterateDirectory( *(FString( LocalAppDataPath ) / TEXT( "Microsoft/Windows/WER/ReportQueue" )), ReportFinder );
}
return ReportDirectory;
}