projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Notepad will no longer add .txt if you invoke it specifying a file that does not...
[reactos.git]
/
reactos
/
subsys
/
system
/
notepad
/
dialog.c
diff --git
a/reactos/subsys/system/notepad/dialog.c
b/reactos/subsys/system/notepad/dialog.c
index
53864d9
..
7efb11f
100644
(file)
--- a/
reactos/subsys/system/notepad/dialog.c
+++ b/
reactos/subsys/system/notepad/dialog.c
@@
-139,6
+139,17
@@
BOOL FileExists(LPCWSTR szFilename)
}
+BOOL HasFileExtension(LPCWSTR szFilename)
+{
+ LPCWSTR s;
+
+ s = wcsrchr(szFilename, '\\');
+ if (s)
+ szFilename = s;
+ return wcsrchr(szFilename, '.') != NULL;
+}
+
+
static VOID DoSaveFile(VOID)
{
HANDLE hFile;