opcservices: Initialize archive write position.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2018-09-20 10:09:14 +03:00 committed by Alexandre Julliard
parent 5efe50e4d9
commit f5156fd444
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ HRESULT compress_create_archive(IStream *output, struct zip_archive **out)
archive->output = output;
IStream_AddRef(archive->output);
archive->position = 0;
GetSystemTimeAsFileTime(&ft);
FileTimeToDosDateTime(&ft, &date, &time);