Index: abi/src/ask/lib/win/ask_lib_Win32.c
===================================================================
RCS file: /cvsroot/abi/src/ask/lib/win/ask_lib_Win32.c,v
retrieving revision 1.9
diff -u -r1.9 ask_lib_Win32.c
--- abi/src/ask/lib/win/ask_lib_Win32.c	2000/04/13 23:55:06	1.9
+++ abi/src/ask/lib/win/ask_lib_Win32.c	2000/08/11 15:16:26
@@ -166,6 +166,14 @@
 
 	if (g_pSet_BrowseDir->pszDirName &&g_pSet_BrowseDir->pszDirName[0])
 	{
+		/* The disk root directory path ends with '\' but deeper path do not */
+		int iPathLength = strlen(pszPath);
+		if(pszPath[iPathLength - 1] == '\\')
+		{
+		   	/* Eliminate the '\' as we will build the complete path again */
+			pszPath[iPathLength - 1] = '\0';
+		}
+
 		sprintf(g_szBrowseDir, "%s/%s", pszPath, g_pSet_BrowseDir->pszDirName);
 	}
 	else
@@ -380,7 +388,7 @@
     bi.pidlRoot = pidlPrograms; 
     bi.pszDisplayName = lpBuffer; 
     bi.lpszTitle = "Please choose a folder"; 
-    bi.ulFlags = 0; 
+    bi.ulFlags = BIF_RETURNONLYFSDIRS;
     bi.lpfn = NULL; 
     bi.lParam = 0; 
 
