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>
oldstable
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;
}
/* 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;