msi: Include the null terminator when writing data to the stream.

This commit is contained in:
James Hawkins 2007-10-23 03:08:42 -05:00 committed by Alexandre Julliard
parent 39bcc662e4
commit 85bd53a675
1 changed files with 1 additions and 1 deletions

View File

@ -2736,7 +2736,7 @@ static void set_admin_property_stream(LPCSTR file)
hr = IStorage_CreateStream(stg, stmname, STGM_WRITE | STGM_SHARE_EXCLUSIVE, 0, 0, &stm);
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
hr = IStream_Write(stm, data, sizeof(data) - 1, &count);
hr = IStream_Write(stm, data, sizeof(data), &count);
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
IStream_Release(stm);