[Spice-devel] [PATCH] Fix swprintf_s call under MingW

Frediano Ziglio fziglio at redhat.com
Wed Aug 10 07:28:46 UTC 2016


> 
> For some reason this call does not behave correctly.
> This was causing vdservice to fail to run the agent if compiled
> with MingW.
> 

I tested with Windows 7 but I didn't manage to test with
Windows XP. Can somebody test it with Windows XP ?

> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  common/vdcommon.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/common/vdcommon.h b/common/vdcommon.h
> index 93bb673..bc8ce33 100644
> --- a/common/vdcommon.h
> +++ b/common/vdcommon.h
> @@ -62,8 +62,6 @@ typedef CRITICAL_SECTION mutex_t;
>   * those functions are not required to be in that dll on the guest.
>   */
>  #ifdef OLDMSVCRT
> -#define swprintf_s(buf, sz, format...) swprintf(buf, format)
> -
>  #ifndef _ftime_s
>  #define _ftime_s(timeb) _ftime(timeb)
>  #endif



More information about the Spice-devel mailing list