Commit Graph

6 Commits

Author SHA1 Message Date
Frediano Ziglio
71f6d00a78 Use enumeration for supported_system_version return type
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2016-08-10 11:13:39 +01:00
Frediano Ziglio
9ab74bb67a Fix swprintf_s call under MingW
For some reason this call does not behave correctly.
This was causing vdservice to fail to run the agent if compiled
with MingW.
Provide a proper swprintf_s replacement.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2016-08-10 11:13:15 +01:00
Christophe Fergeau
a4f082b0d1 Add strcat_s/strcpy_s fallbacks
These security functions are available when building with MSVC++. With
mingw, they can be used at build time, but their availability will
depend on the version of MSVCRT the user has installed on their system.
In particular, a default install of Windows XP will not have a new
enough MSVCRT version, causing runtime failures as the binary built with
mingw and using strcat_s will not be able to find the necessary entry
point in the MSVCRT runtime.

This commit adds some strcat_s/strcpy_s-like functions used with mingw
which will always be available.
2015-03-20 10:45:12 +01:00
Arnon Gilboa
877e52386e vdservice: extract supported_system_version() to vdcommon
rhbz #919451 preparation
2013-03-18 12:54:04 +02:00
Arnon Gilboa
875cc05292 Revert "vdservice: add missing vdcommon.cpp"
This reverts commit 53b32d4db3 which becomes irrelevant due to previous revert.
2010-11-09 20:52:52 +02:00
Alon Levy
53b32d4db3 vdservice: add missing vdcommon.cpp 2010-08-29 15:07:47 +03:00