Fix Cygwin build with wxUSE_STL==1
Use explicit c_str() when calling Cygwin functions taking char* or void* instead of relying on implicit conversions.
This commit is contained in:
@@ -351,9 +351,9 @@ const wxChar* wxGetHomeDir(wxString *pstr)
|
|||||||
// Cygwin returns unix type path but that does not work well
|
// Cygwin returns unix type path but that does not work well
|
||||||
static wxChar windowsPath[MAX_PATH];
|
static wxChar windowsPath[MAX_PATH];
|
||||||
#if CYGWIN_VERSION_DLL_MAJOR >= 1007
|
#if CYGWIN_VERSION_DLL_MAJOR >= 1007
|
||||||
cygwin_conv_path(CCP_POSIX_TO_WIN_W, strDir, windowsPath, MAX_PATH);
|
cygwin_conv_path(CCP_POSIX_TO_WIN_W, strDir.c_str(), windowsPath, MAX_PATH);
|
||||||
#else
|
#else
|
||||||
cygwin_conv_to_full_win32_path(strDir, windowsPath);
|
cygwin_conv_to_full_win32_path(strDir.c_str(), windowsPath);
|
||||||
#endif
|
#endif
|
||||||
strDir = windowsPath;
|
strDir = windowsPath;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user