Commit e52296cc authored by Michael Jung's avatar Michael Jung Committed by Alexandre Julliard

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

Moved UI string into the resources.
parent f4949b8d
......@@ -144,4 +144,5 @@ BEGIN
IDS_TAB_GENERAL "Allgemein"
IDS_TAB_DLLS "Bibliotheken"
IDS_TAB_DRIVES "Laufwerke"
IDS_CHOOSE_PATH "Bitte whlen Sie ein Unix-Verzeichnis fr das Laufwerk."
END
......@@ -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
......@@ -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) {
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment