Skip to content

Commit

Permalink
Updates to DevCon RC file and input reading (#1048)
Browse files Browse the repository at this point in the history
Updates to RC file and input reading
  • Loading branch information
emilyhobby authored Nov 21, 2023
1 parent 796e36a commit 00d6f86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion setup/devcon/devcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,12 @@ Return Value:
for(dispIndex = 0;DispatchTable[dispIndex].cmd;dispIndex++) {
if ((_tcsicmp(cmd,DispatchTable[dispIndex].cmd) == 0) &&
(argc >= firstArg)) {
retval = DispatchTable[dispIndex].func(baseName,machine,flags,argc-firstArg,argv+firstArg);
if (argc == firstArg) {
retval = DispatchTable[dispIndex].func(baseName,machine,flags,0,NULL);
} else {
retval = DispatchTable[dispIndex].func(baseName,machine,flags,argc-firstArg,argv+firstArg);
}

switch(retval) {
case EXIT_USAGE:
CommandUsage(baseName,DispatchTable[dispIndex].cmd);
Expand Down
8 changes: 4 additions & 4 deletions setup/devcon/devcon.rc
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ STRINGTABLE DISCARDABLE
// Version resources
//
#include <ntverp.h>
#define VER_FILETYPE VFT_DLL
#define VER_FILETYPE VFT_APP
#define VER_FILESUBTYPE VFT2_UNKNOWN
#define VER_FILEDESCRIPTION_STR "Windows Setup API"
#define VER_INTERNALNAME_STR "SETUPAPI.DLL"
#define VER_ORIGINALFILENAME_STR "SETUPAPI.DLL"
#define VER_FILEDESCRIPTION_STR "Device Console"
#define VER_INTERNALNAME_STR "DevCon.exe"
#define VER_ORIGINALFILENAME_STR "DevCon.exe"
#include <common.ver>

#include "msg.rc"

0 comments on commit 00d6f86

Please sign in to comment.