Diff of /ooDialog/trunk/ooDialog/ooDialog.cpp [r8594] .. [r8595]  Maximize  Restore

Switch to side-by-side view

--- a/ooDialog/trunk/ooDialog/ooDialog.cpp
+++ b/ooDialog/trunk/ooDialog/ooDialog.cpp
@@ -996,7 +996,7 @@
         {
             size_t len = strlen(str);
 
-            if ( (len == 0 || len == 2) || (len == 1 && *str != '0') || toupper(str[1]) != 'X' )
+            if ( (len == 0 || len == 2) || (len == 1 && *str != '0') || (len > 2 && toupper(str[1]) != 'X') )
             {
                 wrongArgValueException(c->threadContext, 1, "BOTTOM, NOTTOPMOST, TOP, TOPMOST, or a valid window handle", str);
                 return false;

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks