summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CrashDumper/src/utils.cpp')
-rw-r--r--plugins/CrashDumper/src/utils.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/plugins/CrashDumper/src/utils.cpp b/plugins/CrashDumper/src/utils.cpp
index 990212c935..4abad60ed6 100644
--- a/plugins/CrashDumper/src/utils.cpp
+++ b/plugins/CrashDumper/src/utils.cpp
@@ -382,26 +382,6 @@ void GetWow64String(CMString &buffer)
buffer.Append(TEXT(" [running inside WOW64]"));
}
-
-bool CreateDirectoryTree(LPTSTR szDir)
-{
- DWORD dwAttr = GetFileAttributes(szDir);
- if (dwAttr != INVALID_FILE_ATTRIBUTES && (dwAttr & FILE_ATTRIBUTE_DIRECTORY))
- return true;
-
- TCHAR* pszSlash = _tcsrchr(szDir, TEXT('\\'));
- if (pszSlash == NULL)
- return false;
-
- *pszSlash = 0;
- bool res = CreateDirectoryTree(szDir);
- *pszSlash = TEXT('\\');
-
- if (res) res = CreateDirectory(szDir, NULL) != 0;
-
- return res;
-}
-
void GetVersionInfo(HMODULE hLib, CMString& buffer)
{
HRSRC hVersion = FindResource(hLib, MAKEINTRESOURCE(VS_VERSION_INFO), RT_VERSION);