regsvr32: Use INVALID_ARG define instead of magic 1.

This commit is contained in:
Hugh McMaster 2015-09-02 21:12:28 +10:00 committed by Alexandre Julliard
parent 4a4baf2566
commit 99ecebe90d
2 changed files with 4 additions and 3 deletions

View File

@ -266,14 +266,14 @@ int wmain(int argc, WCHAR* argv[])
default: default:
output_write(STRING_UNRECOGNIZED_SWITCH, argv[i]); output_write(STRING_UNRECOGNIZED_SWITCH, argv[i]);
output_write(STRING_USAGE); output_write(STRING_USAGE);
return 1; return INVALID_ARG;
} }
argv[i] = NULL; argv[i] = NULL;
} }
} }
if (!CallInstall && !CallRegister) /* flags: /n or /u /n */ if (!CallInstall && !CallRegister) /* flags: /n or /u /n */
return 1; return INVALID_ARG;
for (i = 1; i < argc; i++) for (i = 1; i < argc; i++)
{ {
@ -309,7 +309,7 @@ int wmain(int argc, WCHAR* argv[])
{ {
output_write(STRING_HEADER); output_write(STRING_HEADER);
output_write(STRING_USAGE); output_write(STRING_USAGE);
return 1; return INVALID_ARG;
} }
OleUninitialize(); OleUninitialize();

View File

@ -19,6 +19,7 @@
*/ */
/* Exit codes */ /* Exit codes */
#define INVALID_ARG 1
#define LOADLIBRARY_FAILED 3 #define LOADLIBRARY_FAILED 3
#define GETPROCADDRESS_FAILED 4 #define GETPROCADDRESS_FAILED 4