Compilation fix for wxCStrData handling.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2007-04-06 17:22:29 +00:00
parent 1f3d991197
commit 08bee49e39
3 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ static inline FIND_DATA FindFirst(
FIND_DATA hDir = HDIR_CREATE; FIND_DATA hDir = HDIR_CREATE;
FIND_ATTR rc; FIND_ATTR rc;
rc = ::DosFindFirst( (PSZ)rsSpec.c_str() rc = ::DosFindFirst( rsSpec.c_str()
,&hDir ,&hDir
,0x37 // was: FILE_NORMAL ,0x37 // was: FILE_NORMAL
,pFinddata ,pFinddata

View File

@@ -157,7 +157,7 @@ bool wxShell( const wxString& rCommand )
SData.PgmName = (char*)zShell; SData.PgmName = (char*)zShell;
sInputs = _T("/C ") + rCommand; sInputs = _T("/C ") + rCommand;
SData.PgmInputs = (BYTE*)sInputs.c_str(); SData.PgmInputs = (BYTE*)sInputs.char_str();
SData.TermQ = 0; SData.TermQ = 0;
SData.Environment = 0; SData.Environment = 0;
SData.InheritOpt = SSF_INHERTOPT_SHELL; SData.InheritOpt = SSF_INHERTOPT_SHELL;

View File

@@ -156,7 +156,7 @@ long wxExecute( const wxString& rCommand,
,zArgs ,zArgs
,zEnvs ,zEnvs
,&vResultCodes ,&vResultCodes
,(PSZ)rCommand.c_str() ,rCommand.c_str()
); );
if (rc != NO_ERROR) if (rc != NO_ERROR)
{ {