projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
No need to match bg colours any more
[wxWidgets.git]
/
src
/
os2
/
utils.cpp
diff --git
a/src/os2/utils.cpp
b/src/os2/utils.cpp
index f29aafc86b204b42f4e658b23a64a4744bc9b190..a2f9dafe5ad45ad92ab0a7960eb69ba11c9c58cc 100644
(file)
--- a/
src/os2/utils.cpp
+++ b/
src/os2/utils.cpp
@@
-160,9
+160,9
@@
bool wxShell(
SData.FgBg = SSF_FGBG_FORE;
SData.TraceOpt = SSF_TRACEOPT_NONE;
SData.PgmTitle = PgmTitle;
SData.FgBg = SSF_FGBG_FORE;
SData.TraceOpt = SSF_TRACEOPT_NONE;
SData.PgmTitle = PgmTitle;
- SData.PgmName = zShell;
+ SData.PgmName =
(char*)
zShell;
- sInputs =
"/C "
+ rCommand;
+ sInputs =
_T("/C ")
+ rCommand;
SData.PgmInputs = (BYTE*)sInputs.c_str();
SData.TermQ = 0;
SData.Environment = 0;
SData.PgmInputs = (BYTE*)sInputs.c_str();
SData.TermQ = 0;
SData.Environment = 0;
@@
-416,7
+416,7
@@
const wxChar* wxGetHomeDir(
# define MAX_PATH 256
#endif
# define MAX_PATH 256
#endif
- const wxChar *szHome = wxGetenv("HOME");
+ const wxChar *szHome = wxGetenv(
(wxChar*)
"HOME");
if ( szHome == NULL ) {
// we're homeless, use current directory.
rStrDir = wxT(".");
if ( szHome == NULL ) {
// we're homeless, use current directory.
rStrDir = wxT(".");
@@
-435,7
+435,7
@@
wxChar* wxGetUserHome (
wxChar* zHome;
wxString sUser1(rUser);
wxChar* zHome;
wxString sUser1(rUser);
-
c
har *wxBuffer = new wxChar[256];
+
wxC
har *wxBuffer = new wxChar[256];
#ifndef __EMX__
if (!sUser1.empty())
{
#ifndef __EMX__
if (!sUser1.empty())
{
@@
-471,7
+471,7
@@
wxChar* wxGetUserHome (
}
}
delete[] wxBuffer;
}
}
delete[] wxBuffer;
- return
NULL
; // No home known!
+ return
(wxChar*)wxEmptyString
; // No home known!
}
wxString WXDLLEXPORT wxPMErrorToStr(
}
wxString WXDLLEXPORT wxPMErrorToStr(