X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e93d59553cb4590af25ab23eea111e5113b7440..d2b23b67301bd2d286366d4326a21da3132558fa:/src/msw/display.cpp diff --git a/src/msw/display.cpp b/src/msw/display.cpp index 37c98d45a7..1855c0c6a7 100644 --- a/src/msw/display.cpp +++ b/src/msw/display.cpp @@ -482,7 +482,9 @@ wxVideoMode wxDisplayImplWin32Base::GetCurrentMode() const // according to MSDN. The version of GetName() we implement for Win95 // returns an empty string. const wxString name = GetName(); - const wxChar * const deviceName = name.empty() ? NULL : name.c_str(); + const wxChar * const deviceName = name.empty() + ? (const wxChar*)NULL + : (const wxChar*)name.c_str(); DEVMODE dm; dm.dmSize = sizeof(dm); @@ -669,7 +671,9 @@ wxDisplayImplMultimon::GetModes(const wxVideoMode& modeMatch) const // according to MSDN. The version of GetName() we implement for Win95 // returns an empty string. const wxString name = GetName(); - const wxChar * const deviceName = name.empty() ? NULL : name.c_str(); + const wxChar * const deviceName = name.empty() + ? (const wxChar*)NULL + : (const wxChar*)name.c_str(); DEVMODE dm; dm.dmSize = sizeof(dm);