Tip of the day: Never let a sick person code.
[reactos.git] / reactos / lib / kernel32 / file / volume.c
index a7e07ae..48e1062 100644 (file)
@@ -826,7 +826,7 @@ GetVolumeNameForVolumeMountPointW(
     * an NT acceptable name.
     */
 
-   if (!RtlDosPathNameToNtPathName_U(VolumeName, &NtFileName, NULL, NULL))
+   if (!RtlDosPathNameToNtPathName_U(VolumeMountPoint, &NtFileName, NULL, NULL))
    {
       SetLastError(ERROR_PATH_NOT_FOUND);
       return FALSE;