Alexander Nicolaysen Sørnes : wordpad: Don't display full path in save changes dialog.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Aug 23 07:25:54 CDT 2007


Module: wine
Branch: master
Commit: d13541f86c8afdc68e7970337603be8403374314
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d13541f86c8afdc68e7970337603be8403374314

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Wed Aug 22 22:52:19 2007 +0200

wordpad: Don't display full path in save changes dialog.

---

 programs/wordpad/wordpad.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index 208528a..a8c39d6 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -661,7 +661,7 @@ static BOOL prompt_save_changes(void)
         if(!wszFileName[0])
             displayFileName = wszDefaultFileName;
         else
-            displayFileName = wszFileName;
+            displayFileName = file_basename(wszFileName);
 
         text = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
                          (lstrlenW(displayFileName)+lstrlenW(wszSaveChanges))*sizeof(WCHAR));




More information about the wine-cvs mailing list