summaryrefslogtreecommitdiff
path: root/src/modules/srfile/fileexistsdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/srfile/fileexistsdlg.cpp')
-rw-r--r--src/modules/srfile/fileexistsdlg.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/srfile/fileexistsdlg.cpp b/src/modules/srfile/fileexistsdlg.cpp
index 5fd82cb76b..4414e69c2a 100644
--- a/src/modules/srfile/fileexistsdlg.cpp
+++ b/src/modules/srfile/fileexistsdlg.cpp
@@ -54,12 +54,8 @@ static void DoAnnoyingShellCommand(HWND hwnd, const TCHAR *szFilename, int cmd,
IShellFolder *pDesktopFolder;
if (SHGetDesktopFolder(&pDesktopFolder) == NOERROR) {
ITEMIDLIST *pCurrentIdl;
- #if defined( _UNICODE )
- WCHAR* wszFilename = ( LPWSTR )szFilename;
- #else
- WCHAR wszFilename[MAX_PATH];
- MultiByteToWideChar(CP_ACP, 0, szFilename, -1, wszFilename, SIZEOF(wszFilename));
- #endif
+ WCHAR* wszFilename = ( LPWSTR )szFilename;
+
if (pDesktopFolder->ParseDisplayName(NULL, NULL, wszFilename, NULL, &pCurrentIdl, NULL) == NOERROR) {
if (pCurrentIdl->mkid.cb) {
ITEMIDLIST *pidl, *pidlNext, *pidlFilename;