Cookie is not for dummy initialization due to condition of setting it. Source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
04f4ed8150
commit
c3fad64b42
@ -531,7 +531,7 @@ static bool wxExecuteDDE(const wxString& ddeServer,
|
|||||||
|
|
||||||
long wxExecute(const wxString& cmd, int flags, wxProcess *handler)
|
long wxExecute(const wxString& cmd, int flags, wxProcess *handler)
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( !cmd.IsEmpty(), 0, wxT("empty command in wxExecute") );
|
wxCHECK_MSG( !cmd.empty(), 0, wxT("empty command in wxExecute") );
|
||||||
|
|
||||||
#if wxUSE_THREADS
|
#if wxUSE_THREADS
|
||||||
// for many reasons, the code below breaks down if it's called from another
|
// for many reasons, the code below breaks down if it's called from another
|
||||||
@ -889,7 +889,7 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler)
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxAppTraits *traits = NULL;
|
wxAppTraits *traits = NULL;
|
||||||
void *cookie wxDUMMY_INITIALIZE(NULL);
|
void *cookie = NULL;
|
||||||
if ( !(flags & wxEXEC_NODISABLE) )
|
if ( !(flags & wxEXEC_NODISABLE) )
|
||||||
{
|
{
|
||||||
if ( wxTheApp )
|
if ( wxTheApp )
|
||||||
|
Loading…
Reference in New Issue
Block a user