[3/5] comctl32/dpa: Implement DPA_SaveStream() with tests

Vitaliy Margolen wine-devel at kievinfo.com
Sun Sep 13 16:29:56 CDT 2009


Nikolay Sivov wrote:
> Changelog:
>     - Implement DPA_SaveStream() with tests
> 
> +    streamData.dwSize  = curr_pos.QuadPart - initial_pos.QuadPart;
> +    streamData.dwData2 = 1;
> +    streamData.dwItems = streamInfo.iPos;// + 1;
c++ comment.

> +#if 0
> +    /* crashes on XP */
> +    hRes = pDPA_SaveStream(NULL, CB_Save, pStm, NULL);
> +    expect(E_INVALIDARG, hRes);
> +
> +    hRes = pDPA_SaveStream(dpa, CB_Save, NULL, NULL);
> +    expect(E_INVALIDARG, hRes);
> +#endif
Don't use #if 0 / #endif in tests. Use if (0){} instead. This will guarantee
that code will still compile.

Vitaliy.



More information about the wine-devel mailing list