notepad: Let the user save when receiving WM_QUERYENDSESSION.

Francois Gouget fgouget at codeweavers.com
Thu Oct 7 18:28:31 CDT 2004


Changelog:

  * programs/notepad/main.c

    Francois Gouget <fgouget at codeweavers.com>
    Bring up the File->Save dialog when receiving WM_QUERYENDSESSION.

-- 
Francois Gouget
fgouget at codeweavers.com

-------------- next part --------------
Index: programs/notepad/main.c
===================================================================
RCS file: /var/cvs/wine/programs/notepad/main.c,v
retrieving revision 1.32
diff -u -r1.32 main.c
--- programs/notepad/main.c	20 Sep 2004 19:11:59 -0000	1.32
+++ programs/notepad/main.c	7 Oct 2004 22:58:25 -0000
@@ -149,6 +149,12 @@
         }
         break;
 
+    case WM_QUERYENDSESSION:
+        if (DoCloseFile()) {
+            return 1;
+        }
+        break;
+
     case WM_DESTROY:
         PostQuitMessage(0);
         break;


More information about the wine-patches mailing list