msi: Include the null terminator when writing data to the stream.
This commit is contained in:
parent
39bcc662e4
commit
85bd53a675
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue