Permalink
Browse files

[WIN32] fixed: dumpfile directory wasn't existing in portable mode

  • Loading branch information...
1 parent 50c3980 commit 8cdf853cb7a73ed2a672e6fb2edc1a7f660426e3 @wsoltys wsoltys committed Nov 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/win32/XBMC_PC.cpp
View
@@ -43,7 +43,7 @@ LONG WINAPI CreateMiniDump( EXCEPTION_POINTERS* pEp )
CStdString errorMsg;
CStdString dumpFile;
CDateTime now(CDateTime::GetCurrentDateTime());
- dumpFile.Format("%s\\XBMC\\xbmc_crashlog-%04i%02i%02i-%02i%02i%02i.dmp", CWIN32Util::GetProfilePath().c_str(), now.GetYear(), now.GetMonth(), now.GetDay(), now.GetHour(), now.GetMinute(), now.GetSecond());
+ dumpFile.Format("%s\\xbmc_crashlog-%04i%02i%02i-%02i%02i%02i.dmp", CWIN32Util::GetProfilePath().c_str(), now.GetYear(), now.GetMonth(), now.GetDay(), now.GetHour(), now.GetMinute(), now.GetSecond());
HANDLE hFile = CreateFile(dumpFile.c_str(), GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL );
// Call MiniDumpWriteDump api with the dump file

0 comments on commit 8cdf853

Please sign in to comment.