Now that MSYS2 provides an implementation of the function it clashes with QEMU's, resulting in a compilation error. Remove it since it doesn't seem to be used anyway.
Signed-off-by: Bernhard Beschow <[email protected]> --- qga/vss-win32/install.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/qga/vss-win32/install.cpp b/qga/vss-win32/install.cpp index 7b25d9098b..147bf387fd 100644 --- a/qga/vss-win32/install.cpp +++ b/qga/vss-win32/install.cpp @@ -548,25 +548,6 @@ STDAPI DllUnregisterServer(void) } -/* Support function to convert ASCII string into BSTR (used in _bstr_t) */ -namespace _com_util -{ - BSTR WINAPI ConvertStringToBSTR(const char *ascii) { - int len = strlen(ascii); - BSTR bstr = SysAllocStringLen(NULL, len); - - if (!bstr) { - return NULL; - } - - if (mbstowcs(bstr, ascii, len) == (size_t)-1) { - qga_debug("Failed to convert string '%s' into BSTR", ascii); - bstr[0] = 0; - } - return bstr; - } -} - /* Stop QGA VSS provider service using Winsvc API */ STDAPI StopService(void) { -- 2.51.2
