[BASESRV]
[reactos.git] / base / system / format / format.c
index a8471ba..9b4962d 100644 (file)
@@ -1,13 +1,17 @@
 // Copyright (c) 1998 Mark Russinovich
 // Systems Internals
 // http://www.sysinternals.com
+
+#define WIN32_NO_STATUS
 #include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <windows.h>
+#include <windef.h>
+#include <winbase.h>
+#include <winnls.h>
+#include <winuser.h>
 #include <winternl.h>
 #include <fmifs/fmifs.h>
 #include <tchar.h>
+
 #include "resource.h"
 
 // Globals
@@ -272,7 +276,7 @@ static VOID Usage( LPTSTR ProgramName )
        WCHAR szFormatW[MAX_PATH];
        DWORD Index = 0;
        BYTE dummy;
-       BOOLEAN lastestVersion;
+       BOOLEAN latestVersion;
 
        LoadStringAndOem( GetModuleHandle(NULL), STRING_HELP, (LPTSTR) szMsg,RC_STRING_MAX_SIZE);
        if (!LoadFMIFSEntryPoints())
@@ -282,9 +286,9 @@ static VOID Usage( LPTSTR ProgramName )
        }
 
        szFormats[0] = 0;
-       while (QueryAvailableFileSystemFormat(Index++, szFormatW, &dummy, &dummy, &lastestVersion))
+       while (QueryAvailableFileSystemFormat(Index++, szFormatW, &dummy, &dummy, &latestVersion))
        {
-               if (!lastestVersion)
+               if (!latestVersion)
                        continue;
                if (szFormats[0])
                        _tcscat(szFormats, _T(", "));
@@ -609,4 +613,3 @@ _tmain(int argc, TCHAR *argv[])
 
        return 0;
 }
-