user32/tests: Don't test the contents of uninitialized buffers.
This commit is contained in:
parent
91b3eac2f2
commit
5c5e333284
|
@ -1512,7 +1512,6 @@ static void test_DdeCreateDataHandle(void)
|
||||||
|
|
||||||
ptr = DdeAccessData(hdata, &size);
|
ptr = DdeAccessData(hdata, &size);
|
||||||
ok(ptr != NULL, "Expected non-NULL ptr\n");
|
ok(ptr != NULL, "Expected non-NULL ptr\n");
|
||||||
ok(lstrlenA((LPSTR)ptr) == 0, "Expected 0, got %d\n", lstrlenA((LPSTR)ptr));
|
|
||||||
ok(size == 260, "Expected 260, got %d\n", size);
|
ok(size == 260, "Expected 260, got %d\n", size);
|
||||||
|
|
||||||
ret = DdeUnaccessData(hdata);
|
ret = DdeUnaccessData(hdata);
|
||||||
|
@ -1536,8 +1535,6 @@ static void test_DdeCreateDataHandle(void)
|
||||||
|
|
||||||
ptr = DdeAccessData(hdata, &size);
|
ptr = DdeAccessData(hdata, &size);
|
||||||
ok(ptr != NULL, "Expected non-NULL ptr\n");
|
ok(ptr != NULL, "Expected non-NULL ptr\n");
|
||||||
ok(lstrlenA((LPSTR)ptr) != 0, "Expected non-empty string\n");
|
|
||||||
ok(lstrcmpA((LPSTR)ptr, "data"), "Did not expect data\n");
|
|
||||||
ok(size == 0, "Expected 0, got %d\n", size);
|
ok(size == 0, "Expected 0, got %d\n", size);
|
||||||
|
|
||||||
ret = DdeUnaccessData(hdata);
|
ret = DdeUnaccessData(hdata);
|
||||||
|
|
Loading…
Reference in New Issue