https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f28cc0fc78060816e9d42…
commit f28cc0fc78060816e9d42fcf5f9977d92cce5488
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sun Apr 26 09:06:39 2020 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Sun Apr 26 09:06:39 2020 +0900
[NOTEPAD] Add to recent documents (#2649)
Add to recent documents upon file save. CORE-3588
---
base/applications/notepad/dialog.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/base/applications/notepad/dialog.c b/base/applications/notepad/dialog.c
index f69773e3b04..ca2711c8513 100644
--- a/base/applications/notepad/dialog.c
+++ b/base/applications/notepad/dialog.c
@@ -305,6 +305,12 @@ static BOOL DoSaveFile(VOID)
CloseHandle(hFile);
HeapFree(GetProcessHeap(), 0, pTemp);
+
+ if (bRet)
+ {
+ SetFileName(Globals.szFileName);
+ }
+
return bRet;
}