advapi2/tests: Compare instead of assign.
This commit is contained in:
parent
06c8d49e3e
commit
b27db86ca4
|
@ -564,7 +564,7 @@ static void test_get_displayname(void)
|
|||
displaysize = tempsizeW / 2;
|
||||
ret = GetServiceDisplayNameW(scm_handle, spoolerW, displaynameW, &displaysize);
|
||||
ok(!ret, "Expected failure\n");
|
||||
ok(displaysize = tempsizeW, "Expected the needed buffersize\n");
|
||||
ok(displaysize == tempsizeW, "Expected the needed buffersize\n");
|
||||
ok(GetLastError() == ERROR_INSUFFICIENT_BUFFER,
|
||||
"Expected ERROR_INSUFFICIENT_BUFFER, got %d\n", GetLastError());
|
||||
|
||||
|
@ -573,7 +573,7 @@ static void test_get_displayname(void)
|
|||
displaysize = tempsizeW;
|
||||
ret = GetServiceDisplayNameW(scm_handle, spoolerW, displaynameW, &displaysize);
|
||||
ok(!ret, "Expected failure\n");
|
||||
ok(displaysize = tempsizeW, "Expected the needed buffersize\n");
|
||||
ok(displaysize == tempsizeW, "Expected the needed buffersize\n");
|
||||
ok(GetLastError() == ERROR_INSUFFICIENT_BUFFER,
|
||||
"Expected ERROR_INSUFFICIENT_BUFFER, got %d\n", GetLastError());
|
||||
|
||||
|
|
Loading…
Reference in New Issue