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

Alexandre Julliard julliard at winehq.org
Tue Oct 23 13:14:36 CDT 2007


Module: wine
Branch: master
Commit: 85bd53a6759685557d69a6464013d8fdabd290a3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=85bd53a6759685557d69a6464013d8fdabd290a3

Author: James Hawkins <truiken at gmail.com>
Date:   Tue Oct 23 03:08:42 2007 -0500

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

---

 dlls/msi/tests/install.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c
index c00b869..24fa343 100644
--- a/dlls/msi/tests/install.c
+++ b/dlls/msi/tests/install.c
@@ -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);




More information about the wine-cvs mailing list