rpcrt4/tests: Fix a test failure on 64-bit platforms.

oldstable
Alexandre Julliard 2011-07-28 11:25:04 +02:00
parent e0f1aa0b05
commit 9d9f6da7da
1 changed files with 3 additions and 3 deletions

View File

@ -342,13 +342,13 @@ int __cdecl s_sum_cpsc(cpsc_t *cpsc)
int __cdecl s_get_cpsc(int n, cpsc_t *cpsc)
{
static int array[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int i, ret;
cpsc->ca = array;
cpsc->a = min( 10, 2 * n );
cpsc->a = 2 * n;
cpsc->b = 2;
cpsc->c = 1;
cpsc->ca = MIDL_user_allocate( cpsc->a * sizeof(int) );
for (i = ret = 0; i < cpsc->a; i++) cpsc->ca[i] = i;
for (i = ret = 0; i < cpsc->a; i++) ret += cpsc->ca[i];
return ret;
}