Commit 99ecebe9 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regsvr32: Use INVALID_ARG define instead of magic 1.

parent 4a4baf25
......@@ -266,14 +266,14 @@ int wmain(int argc, WCHAR* argv[])
default:
output_write(STRING_UNRECOGNIZED_SWITCH, argv[i]);
output_write(STRING_USAGE);
return 1;
return INVALID_ARG;
}
argv[i] = NULL;
}
}
if (!CallInstall && !CallRegister) /* flags: /n or /u /n */
return 1;
return INVALID_ARG;
for (i = 1; i < argc; i++)
{
......@@ -309,7 +309,7 @@ int wmain(int argc, WCHAR* argv[])
{
output_write(STRING_HEADER);
output_write(STRING_USAGE);
return 1;
return INVALID_ARG;
}
OleUninitialize();
......
......@@ -19,6 +19,7 @@
*/
/* Exit codes */
#define INVALID_ARG 1
#define LOADLIBRARY_FAILED 3
#define GETPROCADDRESS_FAILED 4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment