qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kostiantyn Kostiuk <kkostiuk@redhat.com>
To: Bernhard Beschow <shentey@gmail.com>,
	Yan Vugenfirer <yvugenfi@redhat.com>
Cc: qemu-devel@nongnu.org, Peter Maydell <peter.maydell@linaro.org>,
	 Michael Roth <michael.roth@amd.com>
Subject: Re: [PATCH] qga/vss-win32/install: Remove _com_util::ConvertStringToBSTR()
Date: Mon, 3 Nov 2025 09:31:16 +0200	[thread overview]
Message-ID: <CAPMcbCpyPN=mZECq2ZfkBFW-CFcM-v-0q+C9kah8uxAfOLC+dg@mail.gmail.com> (raw)
In-Reply-To: <CAPMcbCrime0pad7Nqa-n+yUk7jU9AP5ixYOVX3QekTqXt9Vm1w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1338 bytes --]

CC @Yan Vugenfirer <yvugenfi@redhat.com>

Best Regards,
Kostiantyn Kostiuk.


On Mon, Nov 3, 2025 at 9:30 AM Kostiantyn Kostiuk <kkostiuk@redhat.com>
wrote:

>
> This function is used inside Windows headers. You can find the following
> code in comutil.h in MinGW
>
> inline _bstr_t::Data_t::Data_t(const char *s) : m_str(NULL),m_RefCount(1)
> {
> m_wstr = _com_util::ConvertStringToBSTR(s);
> }
>
> But MinGW does not implement ConvertStringToBSTR, so QEMU should implement
> this function.
> We use _bstr_t in VSS-provided DLL, so this function is mandatory for us.
>
>
> Best Regards,
> Kostiantyn Kostiuk.
>
>
> On Sat, Nov 1, 2025 at 3:13 PM Peter Maydell <peter.maydell@linaro.org>
> wrote:
>
>> On Sat, 1 Nov 2025 at 13:04, Bernhard Beschow <shentey@gmail.com> wrote:
>> >
>> > 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.
>>
>> The comment says it's used by _bstr_t, which presumably
>> is in some Windows header or library that we're linking against.
>> Our code seems to use _bstr_t a lot. Is this function definitely
>> not required, or should we have something so we provide it only
>> when MSYS2 does not?
>>
>> thanks
>> -- PMM
>>
>>

[-- Attachment #2: Type: text/html, Size: 3964 bytes --]

      reply	other threads:[~2025-11-03  7:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-01 13:03 [PATCH] qga/vss-win32/install: Remove _com_util::ConvertStringToBSTR() Bernhard Beschow
2025-11-01 13:13 ` Peter Maydell
2025-11-01 13:48   ` Bernhard Beschow
2025-11-01 16:18     ` Peter Maydell
2025-11-03  7:30   ` Kostiantyn Kostiuk
2025-11-03  7:31     ` Kostiantyn Kostiuk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPMcbCpyPN=mZECq2ZfkBFW-CFcM-v-0q+C9kah8uxAfOLC+dg@mail.gmail.com' \
    --to=kkostiuk@redhat.com \
    --cc=michael.roth@amd.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=shentey@gmail.com \
    --cc=yvugenfi@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).