Fix a cut & paste error.
authorFilip Navara <filip.navara@gmail.com>
Sat, 17 Dec 2005 12:09:08 +0000 (12:09 +0000)
committerFilip Navara <filip.navara@gmail.com>
Sat, 17 Dec 2005 12:09:08 +0000 (12:09 +0000)
svn path=/trunk/; revision=20220

reactos/lib/kernel32/file/volume.c

index 7ae9db1..905202f 100644 (file)
@@ -991,11 +991,12 @@ GetVolumeNameForVolumeMountPointW(
             }
             else
             {
             }
             else
             {
-               RtlFreeHeap(GetProcessHeap(), 0, MountPoints);
                SetLastError(ERROR_FILENAME_EXCED_RANGE);
                Result = FALSE;
             }
 
                SetLastError(ERROR_FILENAME_EXCED_RANGE);
                Result = FALSE;
             }
 
+            RtlFreeHeap(GetProcessHeap(), 0, MountPoints);
+
             return Result;
          }
       }
             return Result;
          }
       }