Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7854f191
Commit
7854f191
authored
Jul 23, 2010
by
Andrew Eikum
Committed by
Alexandre Julliard
Jul 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notepad: Don't specify initial dir for save and open dialogs.
parent
4b93548d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
dialog.c
programs/notepad/dialog.c
+0
-6
No files found.
programs/notepad/dialog.c
View file @
7854f191
...
...
@@ -597,13 +597,11 @@ VOID DIALOG_FileOpen(VOID)
{
OPENFILENAMEW
openfilename
;
WCHAR
szPath
[
MAX_PATH
];
WCHAR
szDir
[
MAX_PATH
];
static
const
WCHAR
szDefaultExt
[]
=
{
't'
,
'x'
,
't'
,
0
};
static
const
WCHAR
txt_files
[]
=
{
'*'
,
'.'
,
't'
,
'x'
,
't'
,
0
};
ZeroMemory
(
&
openfilename
,
sizeof
(
openfilename
));
GetCurrentDirectoryW
(
ARRAY_SIZE
(
szDir
),
szDir
);
lstrcpyW
(
szPath
,
txt_files
);
openfilename
.
lStructSize
=
sizeof
(
openfilename
);
...
...
@@ -612,7 +610,6 @@ VOID DIALOG_FileOpen(VOID)
openfilename
.
lpstrFilter
=
Globals
.
szFilter
;
openfilename
.
lpstrFile
=
szPath
;
openfilename
.
nMaxFile
=
ARRAY_SIZE
(
szPath
);
openfilename
.
lpstrInitialDir
=
szDir
;
openfilename
.
Flags
=
OFN_ENABLETEMPLATE
|
OFN_ENABLEHOOK
|
OFN_EXPLORER
|
OFN_FILEMUSTEXIST
|
OFN_PATHMUSTEXIST
|
OFN_HIDEREADONLY
|
OFN_ENABLESIZING
;
...
...
@@ -647,13 +644,11 @@ BOOL DIALOG_FileSaveAs(VOID)
{
OPENFILENAMEW
saveas
;
WCHAR
szPath
[
MAX_PATH
];
WCHAR
szDir
[
MAX_PATH
];
static
const
WCHAR
szDefaultExt
[]
=
{
't'
,
'x'
,
't'
,
0
};
static
const
WCHAR
txt_files
[]
=
{
'*'
,
'.'
,
't'
,
'x'
,
't'
,
0
};
ZeroMemory
(
&
saveas
,
sizeof
(
saveas
));
GetCurrentDirectoryW
(
ARRAY_SIZE
(
szDir
),
szDir
);
lstrcpyW
(
szPath
,
txt_files
);
saveas
.
lStructSize
=
sizeof
(
OPENFILENAMEW
);
...
...
@@ -662,7 +657,6 @@ BOOL DIALOG_FileSaveAs(VOID)
saveas
.
lpstrFilter
=
Globals
.
szFilter
;
saveas
.
lpstrFile
=
szPath
;
saveas
.
nMaxFile
=
ARRAY_SIZE
(
szPath
);
saveas
.
lpstrInitialDir
=
szDir
;
saveas
.
Flags
=
OFN_ENABLETEMPLATE
|
OFN_ENABLEHOOK
|
OFN_EXPLORER
|
OFN_PATHMUSTEXIST
|
OFN_OVERWRITEPROMPT
|
OFN_HIDEREADONLY
|
OFN_ENABLESIZING
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment