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:
parent
0932d858aa
commit
bfb7a0aa1f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue