X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..f010ad481266d9267f5f4fd0547a9fc891441715:/src/msw/ole/uuid.cpp diff --git a/src/msw/ole/uuid.cpp b/src/msw/ole/uuid.cpp index 9436536733..04f81a8385 100644 --- a/src/msw/ole/uuid.cpp +++ b/src/msw/ole/uuid.cpp @@ -26,9 +26,12 @@ #include "wx/setup.h" -#if wxUSE_DRAG_AND_DROP +#if wxUSE_OLE && wxUSE_DRAG_AND_DROP // standard headers +#if wxCHECK_W32API_VERSION( 1, 0 ) + #include +#endif #include // UUID related functions #include "wx/msw/ole/uuid.h" @@ -133,6 +136,10 @@ void Uuid::Create() // set the value bool Uuid::Set(const wxChar *pc) { +#ifdef __WXWINE__ + wxFAIL_MSG(_T("UUid::Set not implemented")); + return FALSE; +#else // get UUID from string #ifdef _UNICODE if ( UuidFromString((unsigned short *)pc, &m_uuid) != RPC_S_OK) @@ -153,6 +160,7 @@ bool Uuid::Set(const wxChar *pc) UuidToCForm(); return TRUE; +#endif } // stores m_uuid in m_pszCForm in a format required by @@ -167,8 +175,8 @@ void Uuid::UuidToCForm() wsprintf(m_pszCForm, wxT("0x%8.8X,0x%4.4X,0x%4.4X,0x%2.2X,0x2.2%X,0x2.2%X,0x2.2%X,0x2.2%X,0x2.2%X,0x2.2%X,0x2.2%X"), m_uuid.Data1, m_uuid.Data2, m_uuid.Data3, - m_uuid.Data4[1], m_uuid.Data4[2], m_uuid.Data4[3], m_uuid.Data4[4], - m_uuid.Data4[5], m_uuid.Data4[6], m_uuid.Data4[7], m_uuid.Data4[8]); + m_uuid.Data4[0], m_uuid.Data4[1], m_uuid.Data4[2], m_uuid.Data4[3], + m_uuid.Data4[4], m_uuid.Data4[5], m_uuid.Data4[6], m_uuid.Data4[7]); } #endif