[NTVDM]
[reactos.git] / base / system / subst / subst.c
index 3bfad0c..903d59b 100644 (file)
@@ -7,13 +7,17 @@
 
 /* INCLUDES *****************************************************************/
 
-#define LEAN_AND_MEAN
-#include <stdio.h>
+#define WIN32_NO_STATUS
+#include <stdarg.h>
+#include <windef.h>
+#include <winbase.h>
+#include <winuser.h>
 #include <stdlib.h>
-#include <windows.h>
 #include <tchar.h>
+
 #define NDEBUG
 #include <debug.h>
+
 #include "resource.h"
 
 /* FUNCTIONS ****************************************************************/
@@ -35,7 +39,7 @@ void PrintError(DWORD ErrCode)
                       0,
                       NULL);
         LoadString(GetModuleHandle(NULL),
-                   IDS_FAILED_WITH_ERROCODE,
+                   IDS_FAILED_WITH_ERRORCODE,
                    szFmtString,
                    sizeof(szFmtString) / sizeof(szFmtString[0]));
         _sntprintf(buffer,
@@ -224,7 +228,7 @@ int AddSubst(TCHAR* Drive, TCHAR *Path)
     if (IsSubstedDrive(Drive))
     {
         LoadString(GetModuleHandle(NULL),
-                   IDS_DRIVE_ALREAD_SUBSTED,
+                   IDS_DRIVE_ALREADY_SUBSTED,
                    szFmtString,
                    sizeof(szFmtString) / sizeof(szFmtString[0]));
         _tprintf(szFmtString);