James Hawkins : advpack: Fill the output buffer to workaround a bug in IE7s advpack.
Module: wine Branch: master Commit: b3331d1a76a5116b391b0757bfcf6752a307d3d3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b3331d1a76a5116b391b0757bf... Author: James Hawkins <truiken(a)gmail.com> Date: Tue Jan 9 22:21:17 2007 -0600 advpack: Fill the output buffer to workaround a bug in IE7s advpack. --- dlls/advpack/tests/advpack.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/advpack/tests/advpack.c b/dlls/advpack/tests/advpack.c index c9a2d36..9cf1e8a 100644 --- a/dlls/advpack/tests/advpack.c +++ b/dlls/advpack/tests/advpack.c @@ -329,6 +329,8 @@ static void translateinfstringex_test(vo ok(hr == E_INVALIDARG, "Expected E_INVALIDARG, got %08x\n", hr); /* try an empty filename */ + memset(buffer, 'a', 25); + buffer[24] = '\0'; size = MAX_PATH; hr = pTranslateInfStringEx(hinf, "", "Options.NTx86", "InstallDir", buffer, size, &size, NULL); @@ -360,6 +362,8 @@ static void translateinfstringex_test(vo ok(hr == SPAPI_E_LINE_NOT_FOUND, "Expected SPAPI_E_LINE_NOT_FOUND, got %08x\n", hr); /* successfully translate the string */ + memset(buffer, 'a', 25); + buffer[24] = '\0'; size = MAX_PATH; hr = pTranslateInfStringEx(hinf, "c:\\test.inf", "Options.NTx86", "InstallDir", buffer, size, &size, NULL); @@ -383,6 +387,8 @@ static void translateinfstringex_test(vo ok(hr == S_OK, "Expected S_OK, got %08x\n", hr); /* translate the string with the install section specified */ + memset(buffer, 'a', PROG_FILES_LEN); + buffer[PROG_FILES_LEN - 1] = '\0'; size = MAX_PATH; hr = pTranslateInfStringEx(hinf, "c:\\test.inf", "Options.NTx86", "InstallDir", buffer, size, &size, NULL);
participants (1)
-
Alexandre Julliard