From: <mie...@us...> - 2009-08-30 18:53:57
|
Revision: 5118 http://oorexx.svn.sourceforge.net/oorexx/?rev=5118&view=rev Author: miesfeld Date: 2009-08-30 18:53:50 +0000 (Sun, 30 Aug 2009) Log Message: ----------- cosmetic change Modified Paths: -------------- main/trunk/extensions/platform/windows/oodialog/oodCommon.cpp Modified: main/trunk/extensions/platform/windows/oodialog/oodCommon.cpp =================================================================== --- main/trunk/extensions/platform/windows/oodialog/oodCommon.cpp 2009-08-30 18:50:39 UTC (rev 5117) +++ main/trunk/extensions/platform/windows/oodialog/oodCommon.cpp 2009-08-30 18:53:50 UTC (rev 5118) @@ -304,17 +304,17 @@ context->DirectoryPut(TheDotLocalObj, TheZeroObj, "SYSTEMERRORCODE"); } -BOOL DialogInAdminTable(DIALOGADMIN * Dlg) +bool dialogInAdminTable(DIALOGADMIN * Dlg) { - register INT i; + register int i; for ( i = 0; i < StoredDialogs; i++ ) { if ( DialogTab[i] == Dlg ) { - break; + return true; } } - return(i < StoredDialogs); + return false; } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mie...@us...> - 2011-10-14 05:25:03
|
Revision: 7205 http://oorexx.svn.sourceforge.net/oorexx/?rev=7205&view=rev Author: miesfeld Date: 2011-10-14 04:19:28 +0000 (Fri, 14 Oct 2011) Log Message: ----------- ooDialog - fix an error in logic in the resolveSymbolicID method Modified Paths: -------------- main/trunk/extensions/platform/windows/oodialog/oodCommon.cpp Modified: main/trunk/extensions/platform/windows/oodialog/oodCommon.cpp =================================================================== --- main/trunk/extensions/platform/windows/oodialog/oodCommon.cpp 2011-10-14 04:17:53 UTC (rev 7204) +++ main/trunk/extensions/platform/windows/oodialog/oodCommon.cpp 2011-10-14 04:19:28 UTC (rev 7205) @@ -712,20 +712,24 @@ if ( item != NULLOBJECT ) { c->ObjectToInt32(item, &result); - if ( strict && result < 1 ) - { - result = OOD_ID_EXCEPTION; - } - else if ( result < -1 ) - { - result = OOD_ID_EXCEPTION; - } } } } safeFree(symbol); + if ( result != OOD_ID_EXCEPTION ) + { + if ( strict && result < 1 ) + { + result = OOD_ID_EXCEPTION; + } + else if ( result < -1 ) + { + result = OOD_ID_EXCEPTION; + } + } + if ( result == OOD_ID_EXCEPTION ) { if ( TheConstDirUsage == globalLast ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |