[PATCH 03/12] mstask: Don't touch instance count field of the job file in the client.

Dmitry Timoshkov dmitry at baikal.ru
Thu May 10 23:36:28 CDT 2018


It should be managed on the server side.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
 dlls/mstask/task.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/mstask/task.c b/dlls/mstask/task.c
index 986faa1654..5ec7064560 100644
--- a/dlls/mstask/task.c
+++ b/dlls/mstask/task.c
@@ -1260,9 +1260,8 @@ static HRESULT WINAPI MSTASK_IPersistFile_Save(IPersistFile *iface, LPCOLESTR ta
         goto failed;
     }
 
-    /* Instance Count */
-    word = 0;
-    if (!WriteFile(hfile, &word, sizeof(word), &size, NULL))
+    /* Instance Count: don't touch it in the client */
+    if (SetFilePointer(hfile, sizeof(word), NULL, FILE_CURRENT) == INVALID_SET_FILE_POINTER)
     {
         hr = HRESULT_FROM_WIN32(GetLastError());
         goto failed;
-- 
2.16.3




More information about the wine-devel mailing list