Author: akhaldi
Date: Tue May 12 10:39:31 2015
New Revision: 67681
URL:
http://svn.reactos.org/svn/reactos?rev=67681&view=rev
Log:
[NOTEPAD] Apply Wine commit 7854f19 by Andrew Eikum: Don't specify initial dir for
save and open dialogs. CORE-9371
Modified:
trunk/reactos/base/applications/notepad/dialog.c
Modified: trunk/reactos/base/applications/notepad/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/dialog.c [iso-8859-1] Tue May 12 10:39:31
2015
@@ -373,12 +373,10 @@
VOID DIALOG_FileOpen(VOID)
{
OPENFILENAME openfilename;
- TCHAR szDir[MAX_PATH];
TCHAR szPath[MAX_PATH];
ZeroMemory(&openfilename, sizeof(openfilename));
- GetCurrentDirectory(ARRAY_SIZE(szDir), szDir);
if (Globals.szFileName[0] == 0)
_tcscpy(szPath, txt_files);
else
@@ -390,7 +388,6 @@
openfilename.lpstrFilter = Globals.szFilter;
openfilename.lpstrFile = szPath;
openfilename.nMaxFile = ARRAY_SIZE(szPath);
- openfilename.lpstrInitialDir = szDir;
openfilename.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY;
openfilename.lpstrDefExt = szDefaultExt;
@@ -471,12 +468,10 @@
BOOL DIALOG_FileSaveAs(VOID)
{
OPENFILENAME saveas;
- TCHAR szDir[MAX_PATH];
TCHAR szPath[MAX_PATH];
ZeroMemory(&saveas, sizeof(saveas));
- GetCurrentDirectory(ARRAY_SIZE(szDir), szDir);
if (Globals.szFileName[0] == 0)
_tcscpy(szPath, txt_files);
else
@@ -488,7 +483,6 @@
saveas.lpstrFilter = Globals.szFilter;
saveas.lpstrFile = szPath;
saveas.nMaxFile = ARRAY_SIZE(szPath);
- saveas.lpstrInitialDir = szDir;
saveas.Flags = OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY |
OFN_EXPLORER | OFN_ENABLETEMPLATE | OFN_ENABLEHOOK;
saveas.lpstrDefExt = szDefaultExt;