OSDN Git Service

DropHandler.cpp: Fix missing file extension of dropped file
authorsdottaka <sdottaka@users.sourceforge.net>
Wed, 25 Feb 2015 07:01:52 +0000 (16:01 +0900)
committersdottaka <sdottaka@users.sourceforge.net>
Wed, 25 Feb 2015 07:01:52 +0000 (16:01 +0900)
--HG--
branch : stable

Src/DropHandler.cpp

index bfb62bf..4062035 100644 (file)
@@ -186,7 +186,7 @@ namespace
                                                {
                                                        // Folder item
                                                        wchar_t *pPath = NULL;
-                                                       if (SUCCEEDED(hr = pShellItem->GetDisplayName(SIGDN_DESKTOPABSOLUTEEDITING, &pPath)))
+                                                       if (SUCCEEDED(hr = pShellItem->GetDisplayName(SIGDN_DESKTOPABSOLUTEPARSING, &pPath)))
                                                        {
                                                                root_files.push_back(ucr::toTString(pPath));
                                                                CoTaskMemFree(pPath);
@@ -210,7 +210,7 @@ namespace
                                                                        if (SUCCEEDED(hr = pFileOperation->PerformOperations()))
                                                                        {
                                                                                wchar_t *pName;
-                                                                               if (SUCCEEDED(hr = pShellItem->GetDisplayName(SIGDN_PARENTRELATIVE, &pName)))
+                                                                               if (SUCCEEDED(hr = pShellItem->GetDisplayName(SIGDN_PARENTRELATIVEPARSING, &pName)))
                                                                                {
                                                                                        root_files.push_back(paths_ConcatPath(tmpdir, ucr::toTString(pName)));
                                                                                        CoTaskMemFree(pName);