The unixfs extension doesn't have a distinguished '/' node anymore.
Moved UI string into the resources.
This commit is contained in:
parent
f4949b8d80
commit
e52296ccb8
@ -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 wählen Sie ein Unix-Verzeichnis für das Laufwerk."
|
||||||
END
|
END
|
||||||
|
@ -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)
|
|||||||
{
|
{
|
||||||
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)
|
|||||||
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)
|
|||||||
|
|
||||||
bi.pidlRoot = pidlUnixRoot;
|
bi.pidlRoot = pidlUnixRoot;
|
||||||
pidlSelectedPath = SHBrowseForFolderA(&bi);
|
pidlSelectedPath = SHBrowseForFolderA(&bi);
|
||||||
|
|
||||||
SHFree(pidlUnixRoot);
|
SHFree(pidlUnixRoot);
|
||||||
|
|
||||||
if (pidlSelectedPath) {
|
if (pidlSelectedPath) {
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user