unmap-debugging-20040308
authorJeffrey Altman <jaltman@mit.edu>
Tue, 9 Mar 2004 03:07:27 +0000 (03:07 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 9 Mar 2004 03:07:27 +0000 (03:07 +0000)
Add more debug info to DoUnmapShare

src/WINNT/client_config/drivemap.cpp

index 5fa529a..26753dc 100644 (file)
@@ -949,11 +949,14 @@ void DoUnMapShare(BOOL drivemap)  //disconnect drivemap
                                {
                                        if ((lpnrLocal[i].lpLocalName) && (strlen(lpnrLocal[i].lpLocalName)>0))
                                        {
-                                               if (drivemap)
+                                               if (drivemap) {
                                                    DisMountDOSDrive(*lpnrLocal[i].lpLocalName);
-                                       } else
+                            DEBUG_EVENT1("AFS DriveUnMap","UnMap-Local=%x",res);
+                        }
+                                       } else {
                                            DisMountDOSDriveFull(lpnrLocal[i].lpRemoteName);
-                                       DEBUG_EVENT1("AFS DriveUnMap","UnMap-Remote=%x",res);
+                        DEBUG_EVENT1("AFS DriveUnMap","UnMap-Remote=%x",res);
+                    }
                                }
                        }
                }