regsvr32 stricmp

Gregg Mattinson gm138242 at scot.canada.sun.com
Tue Jun 11 12:13:51 CDT 2002


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

Gregg Mattinson
Co-op Developer
Sun Microsystems of Canada

-------------- next part --------------
*** 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]);


More information about the wine-patches mailing list