Minor changes. This program does NOT work in ROS.
authorEmanuele Aliberti <ea@iol.it>
Sun, 25 Sep 2005 13:58:27 +0000 (13:58 +0000)
committerEmanuele Aliberti <ea@iol.it>
Sun, 25 Sep 2005 13:58:27 +0000 (13:58 +0000)
svn path=/trunk/; revision=18054

rosapps/sysutils/lsdd/lsdd.c

index 237f200..7ae4c98 100644 (file)
@@ -1,6 +1,6 @@
 /* $Id$
  *
 /* $Id$
  *
- * FILE  : ldd.c
+ * FILE  : lsdd.c
  * AUTHOR: Emanuele ALIBERTI
  * DATE  : 2000-08-04
  * DESC  : List DOS devices, i.e. symbolic links created
  * AUTHOR: Emanuele ALIBERTI
  * DATE  : 2000-08-04
  * DESC  : List DOS devices, i.e. symbolic links created
@@ -21,6 +21,8 @@
 #define LINKS_SIZE 32768
 #define DEVICE_SIZE 8192
 
 #define LINKS_SIZE 32768
 #define DEVICE_SIZE 8192
 
+static const LPWSTR error_prefix = L"lsdd: ";
+
 static char SymbolicLinks [LINKS_SIZE];
 static char DosDeviceName [DEVICE_SIZE];
 
 static char SymbolicLinks [LINKS_SIZE];
 static char DosDeviceName [DEVICE_SIZE];
 
@@ -57,7 +59,7 @@ int
 main (int argc, char * argv [] )
 {
        printf (
 main (int argc, char * argv [] )
 {
        printf (
-               "ReactOS %s - List DOS Devices Utility\n"
+               "ReactOS/Win32 %s - List DOS Devices Utility\n"
                "Written by E.Aliberti (%s)\n\n",
                KERNEL_RELEASE_STR,
                __DATE__
                "Written by E.Aliberti (%s)\n\n",
                KERNEL_RELEASE_STR,
                __DATE__
@@ -102,7 +104,7 @@ main (int argc, char * argv [] )
                        else
                        {
                                PrintWin32Error (
                        else
                        {
                                PrintWin32Error (
-                                       L"ldd: ",
+                                       error_prefix,
                                        GetLastError ()
                                        );
                        }
                                        GetLastError ()
                                        );
                        }
@@ -112,7 +114,7 @@ main (int argc, char * argv [] )
        else
        {
                PrintWin32Error (
        else
        {
                PrintWin32Error (
-                       L"ldd: ",
+                       error_prefix,
                        GetLastError ()
                        );
                return EXIT_FAILURE;
                        GetLastError ()
                        );
                return EXIT_FAILURE;