Don't use RPC_WSTR absent from older MinGW headers

Fix compilation with MinGW 5.3 after the changes of
948ddc6e0f
This commit is contained in:
Vadim Zeitlin
2020-02-05 03:40:24 +01:00
parent bc2827f6e9
commit 1650ea7030

View File

@@ -138,7 +138,7 @@ bool Uuid::Set(const wxChar *pc)
{
// get UUID from string
#ifdef _UNICODE
if (UuidFromString(reinterpret_cast<RPC_WSTR>(const_cast<wxChar*>(pc)), &m_uuid) != RPC_S_OK)
if ( UuidFromString(reinterpret_cast<unsigned short *>(const_cast<wxChar*>(pc)), &m_uuid) != RPC_S_OK )
#else
if ( UuidFromString((wxUChar *)pc, &m_uuid) != RPC_S_OK)
#endif