Commit 9d9f6da7 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent e0f1aa0b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment