mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
comdlg32/tests: Initialize find & replace strings before testing FindTextA, etc.
This commit is contained in:
parent
587cd82013
commit
4a38b10a56
1 changed files with 2 additions and 0 deletions
|
@ -103,11 +103,13 @@ static void test_param_check(void)
|
|||
/* invalid lpstrFindWhat (NULL) */
|
||||
CHECK_FINDREPLACE_FAIL(FRERR_BUFFERLENGTHZERO);
|
||||
fr.lpstrFindWhat = findbuffer;
|
||||
strcpy(findbuffer, "abc");
|
||||
|
||||
/* invalid lpstrReplaceWith (NULL) for ReplaceText */
|
||||
CHECK_FIND_SUCCEED();
|
||||
CHECK_REPLACE_FAIL(FRERR_BUFFERLENGTHZERO);
|
||||
fr.lpstrReplaceWith = replacebuffer;
|
||||
strcpy(replacebuffer, "def");
|
||||
|
||||
/* wReplaceWithLen may be 0, even for ReplaceText */
|
||||
CHECK_FIND_SUCCEED();
|
||||
|
|
Loading…
Reference in a new issue