rpcrt4: Fix format specifier warning in NdrAllocate when size_t is typedef'd to unsigned long.
Alexandre Julliard
julliard at winehq.org
Wed Aug 27 04:19:46 CDT 2008
"Rob Shearman" <robertshearman at gmail.com> writes:
> @@ -373,7 +373,8 @@ void * WINAPI NdrAllocate(MIDL_STUB_MESSAGE *pStubMsg, size_t len)
> /* check for overflow */
> if (adjusted_len < len)
> {
> - ERR("overflow of adjusted_len %d, len %d\n", adjusted_len, len);
> + ERR("overflow of adjusted_len %lu, len %lu\n", (long)adjusted_len,
> + (long)len);
A better fix would be to avoid size_t completely, we should use SIZE_T
instead.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list