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:
@@ -138,7 +138,7 @@ bool Uuid::Set(const wxChar *pc)
|
|||||||
{
|
{
|
||||||
// get UUID from string
|
// get UUID from string
|
||||||
#ifdef _UNICODE
|
#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
|
#else
|
||||||
if ( UuidFromString((wxUChar *)pc, &m_uuid) != RPC_S_OK)
|
if ( UuidFromString((wxUChar *)pc, &m_uuid) != RPC_S_OK)
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user