Ignore:
Timestamp:
Mar 4, 2015, 10:28:25 AM (10 years ago)
Author:
Herwig Bauernfeind
Message:

GUITools: SSCC (Ticket #248), SMBMon (TDB Check page), EVFSGUI, shared library updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/guitools/shared/smbtree.vrs

    r837 r875  
    379379                /* we only do this for machines with empty parent (=workgroup) handle */
    380380                /* IF there is only one workgroup */
    381                 if wgh <> "" & VRMethod('CN_smbtree', 'GetRecordAttr', smbtree.!machine, 'Parent') = "" then do
     381                if wgh <> "" & VRMethod('CN_smbtree', 'GetRecordAttr', smbtree.!machine, 'Parent') = "" & VRIsValidObject(smbtree.!machine) then do
    382382                    ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'Parent', wgh)
     383                end
     384                else do
     385                    say "Ticket #244 failure: case 1"
     386                    say "wgh    = "wgh
     387                    say "Parent = "VRMethod('CN_smbtree', 'GetRecordAttr', smbtree.!machine, 'Parent')
    383388                end
    384389            end
     
    405410
    406411                    wgh = _GetMachinehandle(workgroup)
    407                     if wgh <> "" & VRMethod('CN_smbtree', 'GetRecordAttr', smbtree.!machine, 'Parent') = "" then do
     412                    if wgh <> "" & VRMethod('CN_smbtree', 'GetRecordAttr', smbtree.!machine, 'Parent') = "" & VRIsValidObject(smbtree.!machine) then do
    408413                        ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'Parent', wgh)
     414                    end
     415                    else do
     416                        say "Ticket #244 failure: case 2"
     417                        say "wgh    = "wgh
     418                        say "Parent = "VRMethod('CN_smbtree', 'GetRecordAttr', smbtree.!machine, 'Parent')
    409419                    end
    410420                end
Note: See TracChangeset for help on using the changeset viewer.