Author: akhaldi
Date: Tue Aug 23 19:34:21 2016
New Revision: 72445

URL: http://svn.reactos.org/svn/reactos?rev=72445&view=rev
Log:
[WRITE] Sync with Wine Staging 1.9.16. CORE-11866

Modified:
    trunk/reactos/base/applications/write/write.c
    trunk/reactos/media/doc/README.WINE

Modified: trunk/reactos/base/applications/write/write.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/write/write.c?rev=72445&r1=72444&r2=72445&view=diff
==============================================================================
--- trunk/reactos/base/applications/write/write.c       [iso-8859-1] (original)
+++ trunk/reactos/base/applications/write/write.c       [iso-8859-1] Tue Aug 23 
19:34:21 2016
@@ -25,8 +25,7 @@
 
 #include "resources.h"
 
-static const WCHAR SZ_BACKSLASH[] = {'\\',0};
-static const WCHAR SZ_WORDPAD[]   = 
{'w','o','r','d','p','a','d','.','e','x','e',0};
+static const WCHAR SZ_WORDPAD[]   = 
{'\\','w','o','r','d','p','a','d','.','e','x','e',0};
 
 int CALLBACK wWinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPWSTR 
szCmdParagraph, int res)
 {
@@ -35,20 +34,14 @@
     PROCESS_INFORMATION info;
 
     if (!GetSystemDirectoryW(path, MAX_PATH - 1 - lstrlenW(SZ_WORDPAD)))
-        goto failed;
-
-    if (path[lstrlenW(path) - 1] != '\\')
-        lstrcatW(path, SZ_BACKSLASH);
-
+       goto failed;
     lstrcatW(path, SZ_WORDPAD);
 
-    ZeroMemory(&stinf, sizeof(stinf));
-    stinf.cb = sizeof(stinf);
+    stinf.cb = sizeof(STARTUPINFOW);
     GetStartupInfoW(&stinf);
 
     if (!CreateProcessW(path, GetCommandLineW(), NULL, NULL, FALSE, 0, NULL, 
NULL, &stinf, &info))
-        goto failed;
-
+       goto failed;
     CloseHandle(info.hProcess);
     CloseHandle(info.hThread);
     return 0;

Modified: trunk/reactos/media/doc/README.WINE
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=72445&r1=72444&r2=72445&view=diff
==============================================================================
--- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original)
+++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Tue Aug 23 19:34:21 2016
@@ -242,6 +242,7 @@
 reactos/base/applications/regedit           # Out of sync
 reactos/base/applications/winhlp32          # Synced to WineStaging-1.9.16
 reactos/base/applications/wordpad           # Synced to WineStaging-1.9.16
+reactos/base/applications/write             # Synced to WineStaging-1.9.16
 reactos/base/services/rpcss                 # Synced to WineStaging-1.9.11
 reactos/base/system/expand                  # Synced to WineStaging-1.9.11
 reactos/base/system/msiexec                 # Synced to WineStaging-1.9.11


Reply via email to