Author: hpoussin
Date: Tue Sep 5 01:58:38 2006
New Revision: 23919
URL:
http://svn.reactos.org/svn/reactos?rev=23919&view=rev
Log:
Add a hack to enable formatting (was broken since at least r20156)
Modified:
trunk/reactos/dll/win32/fmifs/format.c
Modified: trunk/reactos/dll/win32/fmifs/format.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/fmifs/format.c?r…
==============================================================================
--- trunk/reactos/dll/win32/fmifs/format.c (original)
+++ trunk/reactos/dll/win32/fmifs/format.c Tue Sep 5 01:58:38 2006
@@ -35,7 +35,7 @@
UNICODE_STRING usLabel;
BOOLEAN Argument = FALSE;
WCHAR VolumeName[MAX_PATH];
- CURDIR CurDir;
+ //CURDIR CurDir;
Provider = GetProvider(Format);
if (!Provider)
@@ -48,6 +48,12 @@
return;
}
+#if 1
+ DPRINT1("Warning: use GetVolumeNameForVolumeMountPointW() instead!\n");
+ swprintf(VolumeName, L"\\\\.\\%c:", DriveRoot[0]);
+ RtlCreateUnicodeString(&usDriveRoot, VolumeName);
+ /* Code disabled as long as our storage stack doesn't understand
IOCTL_MOUNTDEV_QUERY_DEVICE_NAME */
+#else
if (!GetVolumeNameForVolumeMountPointW(DriveRoot, VolumeName, MAX_PATH)
|| !RtlDosPathNameToNtPathName_U(VolumeName, &usDriveRoot, NULL, &CurDir))
{
@@ -58,10 +64,11 @@
&Argument); /* Argument */
return;
}
+#endif
RtlInitUnicodeString(&usLabel, Label);
- DPRINT1("FormatEx - %S\n", Format);
+ DPRINT("FormatEx - %S\n", Format);
Provider->FormatEx(
&usDriveRoot,
MediaFlag,