Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
42729bc1
Commit
42729bc1
authored
Jun 30, 2009
by
Alexander Scott-Johns
Committed by
Alexandre Julliard
Jul 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notepad: Fix trying to open non-existent files with the command line.
parent
f57c6037
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
dialog.c
programs/notepad/dialog.c
+1
-1
dialog.h
programs/notepad/dialog.h
+1
-0
main.c
programs/notepad/main.c
+2
-1
No files found.
programs/notepad/dialog.c
View file @
42729bc1
...
...
@@ -59,7 +59,7 @@ VOID ShowLastError(void)
* Untitled - Notepad if no file is open
* filename - Notepad if a file is given
*/
static
void
UpdateWindowCaption
(
void
)
void
UpdateWindowCaption
(
void
)
{
WCHAR
szCaption
[
MAX_STRING_LEN
];
WCHAR
szNotepad
[
MAX_STRING_LEN
];
...
...
programs/notepad/dialog.h
View file @
42729bc1
...
...
@@ -52,6 +52,7 @@ int DIALOG_StringMsgBox(HWND hParent, int formatId, LPCWSTR szString, DWORD dwFl
/* utility functions */
VOID
ShowLastError
(
void
);
void
UpdateWindowCaption
(
void
);
BOOL
FileExists
(
LPCWSTR
szFilename
);
BOOL
DoCloseFile
(
void
);
void
DoOpenFile
(
LPCWSTR
szFileName
);
programs/notepad/main.c
View file @
42729bc1
...
...
@@ -698,7 +698,8 @@ static void HandleCommandLine(LPWSTR cmdline)
{
switch
(
AlertFileDoesNotExist
(
file_name
))
{
case
IDYES
:
DoOpenFile
(
file_name
);
SetFileName
(
file_name
);
UpdateWindowCaption
();
break
;
case
IDNO
:
...
...
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