From 43e61f63ab1ae6a992a13f1533db409d72298714 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sat, 14 May 2005 19:16:24 +0000 Subject: [PATCH] fix Wine version of sort order switching svn path=/trunk/; revision=15285 --- reactos/subsys/system/winefile/winefile.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reactos/subsys/system/winefile/winefile.c b/reactos/subsys/system/winefile/winefile.c index 9d57878f113..179f8883b3c 100644 --- a/reactos/subsys/system/winefile/winefile.c +++ b/reactos/subsys/system/winefile/winefile.c @@ -1323,6 +1323,9 @@ static void read_directory(Entry* dir, LPCTSTR path, SORT_ORDER sortOrder, HWND static Entry* read_tree(Root* root, LPCTSTR path, LPITEMIDLIST pidl, LPTSTR drv, SORT_ORDER sortOrder, HWND hwnd) { const static TCHAR sBackslash[] = {'\\', '\0'}; +#if !defined(_NO_EXTENSIONS) && defined(__WINE__) + const static TCHAR sSlash[] = {'/', '\0'}; +#endif #ifdef _SHELL_FOLDERS if (pidl) @@ -1370,10 +1373,6 @@ static Entry* read_tree(Root* root, LPCTSTR path, LPITEMIDLIST pidl, LPTSTR drv, static ChildWnd* alloc_child_window(LPCTSTR path, LPITEMIDLIST pidl, HWND hwnd) { -#if !defined(_NO_EXTENSIONS) && defined(__WINE__) - const static TCHAR sSlash[] = {'/', '\0'}; -#endif - TCHAR drv[_MAX_DRIVE+1], dir[_MAX_DIR], name[_MAX_FNAME], ext[_MAX_EXT]; TCHAR b1[BUFFER_LEN];