The unixfs extension doesn't have a distinguished '/' node anymore.

Moved UI string into the resources.
This commit is contained in:
Michael Jung 2005-05-07 14:50:16 +00:00 committed by Alexandre Julliard
parent f4949b8d80
commit e52296ccb8
4 changed files with 8 additions and 3 deletions

View File

@ -144,4 +144,5 @@ BEGIN
IDS_TAB_GENERAL "Allgemein"
IDS_TAB_DLLS "Bibliotheken"
IDS_TAB_DRIVES "Laufwerke"
IDS_CHOOSE_PATH "Bitte wählen Sie ein Unix-Verzeichnis für das Laufwerk."
END

View File

@ -146,4 +146,5 @@ BEGIN
IDS_TAB_GENERAL "General"
IDS_TAB_DLLS "Libraries"
IDS_TAB_DRIVES "Drives"
IDS_CHOOSE_PATH "Select the unix directory to be mapped, please."
END

View File

@ -521,12 +521,13 @@ static void browse_for_folder(HWND dialog)
{
static WCHAR wszUnixRootDisplayName[] =
{ ':',':','{','C','C','7','0','2','E','B','2','-','7','D','C','5','-','1','1','D','9','-',
'C','6','8','7','-','0','0','0','4','2','3','8','A','0','1','C','D','}','\\','/', 0 };
'C','6','8','7','-','0','0','0','4','2','3','8','A','0','1','C','D','}', 0 };
char pszChoosePath[256];
BROWSEINFOA bi = {
dialog,
NULL,
NULL,
"Select the unix directory to be mapped, please.",
pszChoosePath,
0,
NULL,
0,
@ -535,6 +536,8 @@ static void browse_for_folder(HWND dialog)
IShellFolder *pDesktop;
LPITEMIDLIST pidlUnixRoot, pidlSelectedPath;
HRESULT hr;
LoadString(GetModuleHandle(NULL), IDS_CHOOSE_PATH, pszChoosePath, 256);
hr = SHGetDesktopFolder(&pDesktop);
if (!SUCCEEDED(hr)) return;
@ -548,7 +551,6 @@ static void browse_for_folder(HWND dialog)
bi.pidlRoot = pidlUnixRoot;
pidlSelectedPath = SHBrowseForFolderA(&bi);
SHFree(pidlUnixRoot);
if (pidlSelectedPath) {

View File

@ -27,6 +27,7 @@
#define IDS_TAB_GENERAL 2
#define IDS_TAB_DLLS 3
#define IDS_TAB_DRIVES 4
#define IDS_CHOOSE_PATH 5
#define IDD_MAINDLG 101
#define IDB_WINE 104
#define IDD_ABOUTCFG 107