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>
This commit is contained in:
Dmitry Timoshkov 2018-05-11 12:36:28 +08:00 committed by Alexandre Julliard
parent 0932d858aa
commit bfb7a0aa1f
1 changed files with 2 additions and 3 deletions

View File

@ -1260,9 +1260,8 @@ static HRESULT WINAPI MSTASK_IPersistFile_Save(IPersistFile *iface, LPCOLESTR ta
goto failed; goto failed;
} }
/* Instance Count */ /* Instance Count: don't touch it in the client */
word = 0; if (SetFilePointer(hfile, sizeof(word), NULL, FILE_CURRENT) == INVALID_SET_FILE_POINTER)
if (!WriteFile(hfile, &word, sizeof(word), &size, NULL))
{ {
hr = HRESULT_FROM_WIN32(GetLastError()); hr = HRESULT_FROM_WIN32(GetLastError());
goto failed; goto failed;