Diff of /ooDialog/trunk/ooDialog/oodResources.cpp [r9766] .. [r9767]  Maximize  Restore

Switch to side-by-side view

--- a/ooDialog/trunk/ooDialog/oodResources.cpp
+++ b/ooDialog/trunk/ooDialog/oodResources.cpp
@@ -1585,7 +1585,6 @@
 {
     RexxObjectPtr result = NULLOBJECT;
     SIZE s = {0};
-    uint32_t defFlags = LR_LOADFROMFILE;
 
     if ( ! requiredClass(context->threadContext, dlg, "PlainBaseDialog", 1) )
     {
@@ -1630,11 +1629,6 @@
     if ( defFlags == OOD_NO_VALUE )
     {
         goto out;
-    }
-    if ( argumentExists(4) )
-    {
-        // Make sure the user has compatible flags for this operation.
-        defFlags = (flags &  ~LR_SHARED) | LR_LOADFROMFILE;
     }
 
     HANDLE hImage = LoadImage(NULL, fileName, IMAGE_ICON, s.cx, s.cy, defFlags);