From ce1317d110f70eee0d835ffa3c761168e2f5e9b7 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 27 Feb 2016 16:03:20 +0000 Subject: Drobpox: - added search command - fixed other commands git-svn-id: http://svn.miranda-ng.org/main/trunk@16363 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox_utils.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'plugins/Dropbox/src/dropbox_utils.cpp') diff --git a/plugins/Dropbox/src/dropbox_utils.cpp b/plugins/Dropbox/src/dropbox_utils.cpp index 15e97451d2..ee6fc73a60 100644 --- a/plugins/Dropbox/src/dropbox_utils.cpp +++ b/plugins/Dropbox/src/dropbox_utils.cpp @@ -2,10 +2,17 @@ char* CDropbox::PreparePath(const char *oldPath, char *newPath) { - CMStringA result("/"); - result.Append(oldPath); - result.Replace("\\", "/"); - mir_strcpy(newPath, result); + if (oldPath == NULL) + mir_strcpy(newPath, ""); + else if (*oldPath != '/') + { + CMStringA result("/"); + result.Append(oldPath); + result.Replace("\\", "/"); + mir_strcpy(newPath, result); + } + else + mir_strcpy(newPath, oldPath); return newPath; } -- cgit v1.2.3