mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
add __REACTOS__ specific code to get around the fact that janderwald isn't working hard enough on shell32 ;)
svn path=/trunk/; revision=30276
This commit is contained in:
parent
78cf4e67ec
commit
45c452c254
2 changed files with 13 additions and 2 deletions
|
@ -225,6 +225,7 @@ GeneralDlgProc(HWND hDlg,
|
|||
break;
|
||||
|
||||
case IDC_SAVE:
|
||||
SaveAllSettings(pInfo);
|
||||
SaveRdpSettingsToFile(NULL, pInfo->pRdpSettings);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -372,8 +372,8 @@ OpenRdpFile(LPWSTR path, BOOL bWrite)
|
|||
bWrite ? GENERIC_WRITE : GENERIC_READ,
|
||||
0,
|
||||
NULL,
|
||||
bWrite ? CREATE_ALWAYS : OPEN_EXISTING,
|
||||
FILE_ATTRIBUTE_NORMAL,
|
||||
bWrite ? OPEN_EXISTING: CREATE_ALWAYS,
|
||||
FILE_ATTRIBUTE_NORMAL | FILE_ATTRIBUTE_HIDDEN,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
@ -400,6 +400,7 @@ SaveRdpSettingsToFile(LPWSTR lpFile,
|
|||
/* use default file */
|
||||
if (lpFile == NULL)
|
||||
{
|
||||
#ifndef __REACTOS__
|
||||
HRESULT hr;
|
||||
LPITEMIDLIST lpidl= NULL;
|
||||
|
||||
|
@ -417,6 +418,10 @@ SaveRdpSettingsToFile(LPWSTR lpFile,
|
|||
CoTaskMemFree(lpidl);
|
||||
}
|
||||
}
|
||||
#else
|
||||
wcscpy(pszPath, L"C:\\Default.rdp");
|
||||
lpFile = pszPath;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (lpFile)
|
||||
|
@ -447,6 +452,7 @@ LoadRdpSettingsFromFile(LPWSTR lpFile)
|
|||
/* use default file */
|
||||
if (lpFile == NULL)
|
||||
{
|
||||
#ifndef __REACTOS__
|
||||
HRESULT hr;
|
||||
LPITEMIDLIST lpidl= NULL;
|
||||
|
||||
|
@ -464,6 +470,10 @@ LoadRdpSettingsFromFile(LPWSTR lpFile)
|
|||
CoTaskMemFree(lpidl);
|
||||
}
|
||||
}
|
||||
#else
|
||||
wcscpy(pszPath, L"C:\\Default.rdp");
|
||||
lpFile = pszPath;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (lpFile)
|
||||
|
|
Loading…
Reference in a new issue