regsvr32 stricmp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Replaced stricmp / strnicmp with strcasecmp / strncasecmp in regsvr32.exe

Gregg Mattinson
Co-op Developer
Sun Microsystems of Canada

*** wine-20020605/programs/regsvr32/regsvr32.exe       Tue Jun 11 13:10:12 2002
--- wine/programs/regsvr32/regsvr32.c  Tue Jun 11 13:05:21 2002
***************
*** 173,183 ****
--- 173,183 ----
  
      for(i = 1; i < argc; i++)
      {
-         if (!stricmp(argv[i], "/u"))
+         if (!strcasecmp(argv[i], "/u"))
                  Unregister = TRUE;
-         else if (!stricmp(argv[i], "/s"))
+         else if (!strcasecmp(argv[i], "/s"))
                  Silent = 1;
-         else if (!strnicmp(argv[i], "/i", strlen("/i")))
+         else if (!strncasecmp(argv[i], "/i", strlen("/i")))
          {
              CHAR* command_line = argv[i] + strlen("/i");
  
***************
*** 219,225 ****
--- 219,225 ----
                  wsCommandLine = EmptyLine;
              }
          }
-         else if(!stricmp(argv[i], "/n"))
+         else if(!strcasecmp(argv[i], "/n"))
              CallRegister = FALSE;
          else if (argv[i][0] == '/' && (!argv[i][2] || argv[i][2] == ':'))
              printf("Unrecognized switch %s\n", argv[i]);

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux