On Win32, size is explcitly "ignored" when target is NULL, so we should set it to the size of the allocation.