Module: wine Branch: master Commit: bfb7a0aa1fbf856a479e22311e0855380674edf5 URL: https://source.winehq.org/git/wine.git/?a=commit;h=bfb7a0aa1fbf856a479e22311...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Fri May 11 12:36:28 2018 +0800
mstask: Don't touch instance count field of the job file in the client.
It should be managed on the server side.
Signed-off-by: Dmitry Timoshkov dmitry@baikal.ru Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 986faa1..5ec7064 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;