From 724f02caa7b7fc34fb77be77a6df56610573a0c8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 Mar 2013 10:27:24 +0000 Subject: hopefully last compilation fix git-svn-id: http://svn.miranda-ng.org/main/trunk@3892 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Utils.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'plugins/PluginUpdater/src/Utils.cpp') diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 38d46a6c75..89d817a06f 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -344,6 +344,17 @@ char* rtrim(char *str) } return str; } + +void CreatePathToFileT(TCHAR* tszFilePath) +{ + TCHAR* pszLastBackslash = _tcsrchr(tszFilePath, '\\'); + if (pszLastBackslash == NULL) + return; + + *pszLastBackslash = '\0'; + CreateDirectoryTreeT(tszFilePath); + *pszLastBackslash = '\\'; +} #endif // FUNCTION: IsRunAsAdmin() -- cgit v1.2.3