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 ...@@ -144,4 +144,5 @@ BEGIN
IDS_TAB_GENERAL "Allgemein" IDS_TAB_GENERAL "Allgemein"
IDS_TAB_DLLS "Bibliotheken" IDS_TAB_DLLS "Bibliotheken"
IDS_TAB_DRIVES "Laufwerke" IDS_TAB_DRIVES "Laufwerke"
IDS_CHOOSE_PATH "Bitte whlen Sie ein Unix-Verzeichnis fr das Laufwerk."
END END
...@@ -146,4 +146,5 @@ BEGIN ...@@ -146,4 +146,5 @@ BEGIN
IDS_TAB_GENERAL "General" IDS_TAB_GENERAL "General"
IDS_TAB_DLLS "Libraries" IDS_TAB_DLLS "Libraries"
IDS_TAB_DRIVES "Drives" IDS_TAB_DRIVES "Drives"
IDS_CHOOSE_PATH "Select the unix directory to be mapped, please."
END END
...@@ -521,12 +521,13 @@ static void browse_for_folder(HWND dialog) ...@@ -521,12 +521,13 @@ static void browse_for_folder(HWND dialog)
{ {
static WCHAR wszUnixRootDisplayName[] = static WCHAR wszUnixRootDisplayName[] =
{ ':',':','{','C','C','7','0','2','E','B','2','-','7','D','C','5','-','1','1','D','9','-', { ':',':','{','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 = { BROWSEINFOA bi = {
dialog, dialog,
NULL, NULL,
NULL, NULL,
"Select the unix directory to be mapped, please.", pszChoosePath,
0, 0,
NULL, NULL,
0, 0,
...@@ -535,6 +536,8 @@ static void browse_for_folder(HWND dialog) ...@@ -535,6 +536,8 @@ static void browse_for_folder(HWND dialog)
IShellFolder *pDesktop; IShellFolder *pDesktop;
LPITEMIDLIST pidlUnixRoot, pidlSelectedPath; LPITEMIDLIST pidlUnixRoot, pidlSelectedPath;
HRESULT hr; HRESULT hr;
LoadString(GetModuleHandle(NULL), IDS_CHOOSE_PATH, pszChoosePath, 256);
hr = SHGetDesktopFolder(&pDesktop); hr = SHGetDesktopFolder(&pDesktop);
if (!SUCCEEDED(hr)) return; if (!SUCCEEDED(hr)) return;
...@@ -548,7 +551,6 @@ static void browse_for_folder(HWND dialog) ...@@ -548,7 +551,6 @@ static void browse_for_folder(HWND dialog)
bi.pidlRoot = pidlUnixRoot; bi.pidlRoot = pidlUnixRoot;
pidlSelectedPath = SHBrowseForFolderA(&bi); pidlSelectedPath = SHBrowseForFolderA(&bi);
SHFree(pidlUnixRoot); SHFree(pidlUnixRoot);
if (pidlSelectedPath) { if (pidlSelectedPath) {
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#define IDS_TAB_GENERAL 2 #define IDS_TAB_GENERAL 2
#define IDS_TAB_DLLS 3 #define IDS_TAB_DLLS 3
#define IDS_TAB_DRIVES 4 #define IDS_TAB_DRIVES 4
#define IDS_CHOOSE_PATH 5
#define IDD_MAINDLG 101 #define IDD_MAINDLG 101
#define IDB_WINE 104 #define IDB_WINE 104
#define IDD_ABOUTCFG 107 #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