311 Commits
Author SHA1 Message Date
Eric Kohl d2025ff295 [NSLOOKUP] Fix calls to stricmp and strnicmp
GCC does not complain about this!
2026-08-03 01:40:42 +02:00
Eric Kohl 07068a363f [NSLOOKUP] Implement the interactive mode
Also implement the retry and timeout command line options
2026-08-03 01:20:33 +02:00
Deep Varkute 90c6642673 [IPCONFIG] Fix memory leak for disconnected adapters in ShowInfo (#9324)
Signed-off-by: Deep Varkute <[email protected]>
2026-07-24 12:10:37 +03:00
Eric Kohl 0943343296 [NETSH] Support the flags CMD_FLAG_ONLINE, CMD_FLAG_LOCAL and CMD_FLAG_HIDDEN 2026-07-18 16:57:00 +02:00
Eric Kohl 776b4389f8 [NETSH] Silence some debug messages 2026-07-11 19:11:09 +02:00
Eric Kohl 1a706d759e [NETSH] Fix version info and add version callback checks 2026-07-10 00:20:14 +02:00
Eric Kohl e848ce1c52 [NETSH] Add the pfnOsVersionCheck function to the internal data structures and retrieve the WMI version information 2026-06-30 23:14:18 +02:00
Eric Kohl 4320065009 [NETSH] Call a contexts connect function after it has been added to its parent context 2026-06-25 21:34:02 +02:00
Eric Kohl ac06652ab6 [NETSH][REACTOS] Basic implementation of PreprocessCommand
Preprocess is used by the 'reset' command in the 'interface ip' command.
2026-06-21 00:59:22 +02:00
Eric Kohl ace5f8bde9 [NETSH][IFMON] PrintMessageFromModule must use ConResMsgPrintfExV to print messages
- Update the format strings in ifmon.dll.
2026-06-17 16:15:14 +02:00
Eric Kohl 40a1951b65 [NETSH] Fix the command order in the help texts 2026-06-17 15:21:12 +02:00
Eric Kohl ddde8c5f93 [NETSH] Implement NsGetIfNameFromFriendlyName
This is used the 'interface ip set address' command from the WinXP ifmon.dll.
2026-06-06 23:29:59 +02:00
Eric Kohl af10f35a5d [NETSH] Support untagged arguments in MatchTagsInCmdLine 2026-06-02 23:28:31 +02:00
Eric Kohl d0f2efa8fa [NETSH] Improve MatchTagsInCmdLine
- Remove the tag name after the a tagged argument has been identified.
2026-06-01 23:25:08 +02:00
Eric Kohl 93bd77f1f7 [NETSH] Use the right index in MatchTagsInCmdLine 2026-05-30 21:02:53 +02:00
Eric Kohl 8f5639a9bd [NETSH] Remove quotation marks from quoted arguments
Add support for quoted strings to the script file interpreter.
2026-05-30 16:29:53 +02:00
Eric Kohl 4bb73fe3c9 [NETSH][REACTOS] Improve MatchTagsInCmdLine and add NsGetIfNameFromFriendlyName stubs.c
These functions are used by the WinXP ifmon.dll when the 'interface ip set address' command is used.
2026-05-14 15:19:50 +02:00
Eric Kohl 858b8fd42c [NETSH] Do not split arguments at whitespace between quotation marks 2026-05-13 23:35:09 +02:00
Eric Kohl 425ea0378b [NETSH][REACTOS] Add MatchTagsInCmdLine stub
MatchTagsInCmdLine is similar to PreprocessCommand except that the parameters dwMinArgs and dwMaxArgs are missing.
2026-05-11 22:56:06 +02:00
Timo Kreuzer b13e568d99 [CMAKE] Remove global _CRT_NON_CONFORMING_SWPRINTFS
Instead define it only in 3rd-party code where required.
Most of these will go away with future wine-syncs.
2026-05-07 06:27:58 +00:00
Timo Kreuzer 1cf31524d5 [REACTOS] Stop using non-conforming swprintf / vswprintf
Use the underscored versions instead.
2026-05-07 06:27:58 +00:00
Václav Zouzalík af895a116b [PING] Add Slovak (sk-SK) translation (#8784) 2026-05-06 15:50:11 +03:00
Eric Kohl d309745deb [NETSH] Add missing iphlpapi.h import 2026-05-03 20:05:13 +02:00
Hermès Bélusca-Maïto 97cc32519f [WLANCONF] Improve imports and fix x64 build warnings
wlanconf\wlanconf.c(592):
  warning C4267: '=': conversion from 'size_t' to 'DWORD', possible loss of data
wlanconf\wlanconf.c(602),(683):
  warning C4267: '=': conversion from 'size_t' to 'ULONG', possible loss of data
2026-03-30 21:46:10 +02:00
Hermès Bélusca-Maïto 3913b3cf35 [TRACERT] Improve imports, simplify code, and fix x64 build warning
tracert\tracert.cpp(209):
  warning C4267: 'argument': conversion from 'size_t' to 'socklen_t', possible loss of data
2026-03-30 21:46:09 +02:00
Hermès Bélusca-Maïto 012e9be792 [NETSH] Improve imports, simplify code, and fix x64 build warnings
netsh\helper.c(84):
  warningC4267: 'function': conversion from 'size_t' to 'DWORD', possible loss of data
netsh\netsh.c(65):
  warning C4267: '+=': conversion from 'size_t' to 'INT', possible loss of data
2026-03-30 21:46:07 +02:00
Hermès Bélusca-Maïto 0038ad5423 [NET] Improve imports, simplify code, and fix x64 build warnings
net\cmdLocalGroup.c(125):
  warning C4267: '=': conversion from 'size_t' to 'DWORD', possible loss of data
net\cmdShare.c(115),(128),(142):
  warning C4267: '=': conversion from 'size_t' to 'INT', possible loss of data
net\cmdUse.c(89),(178),(194):
  warning C4267: '=': conversion from 'size_t' to 'DWORD', possible loss of data
net\cmdUser.c(597),(631),(676):
  warning C4267: '=': conversion from 'size_t' to 'INT', possible loss of data
2026-03-30 21:46:06 +02:00
Hermès Bélusca-Maïto c2ecf0649d [IPCONFIG] Improve imports, LP* -> P*, and fix x64 build warnings
ipconfig\ipconfig.c(236):
  warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
ipconfig\ipconfig.c(263),(306),(380):
  warning C4267: '=': conversion from 'size_t' to 'DWORD', possible loss of data
ipconfig\ipconfig.c(303):
  warning C4267: 'initializing': conversion from 'size_t' to 'DWORD', possible loss of data
ipconfig\ipconfig.c(1318): warning C4267: 'function': conversion from 'size_t' to 'DWORD', possible loss of data
2026-03-30 21:46:05 +02:00
Hermès Bélusca-Maïto 12d0b84141 [DWNL] Improve imports, use _countof(), and fix x64 build warnings
dwnl\dwnl.c(387):
  warning C4267: 'function': conversion from 'size_t' to 'DWORD', possible loss of data
dwnl\dwnl.c(401):
  warning C4267: '=': conversion from 'size_t' to 'DWORD', possible loss of data
2026-03-30 21:46:04 +02:00
Hermès Bélusca-Maïto cab720aa2c [CMDUTILS][NETWORK][LOGOFF][RUNAS][CMD][SYSTEM] Improve imports and headers for some tools 2026-03-30 13:55:07 +02:00
Timo Kreuzer daeb0bb257 [FTP] Fix invalid call to free()
While our glob is a dummy anyway and always returns NULL, the basic idea is that glob returns a NULL terminated array of pointers. The original code only calls blkfree to free any allocation in the array after the first one and doesn't free the array itself. Our code tried to be "smart" and free the array as well, but the array pointer was already changed by a "globbed++", resulting in trying to free an invalid address. Also the free was only called, when glob returned more than one result. This is now fixed by removing the "++", doing the blkfree on "&globbed[1]" and calling free on the originally returned array in all cases.

Fixes GCC 13 warning:

C:/ReactOS/reactos/base/applications/network/ftp/cmds.c: In function 'globulize':
C:/ReactOS/reactos/base/applications/network/ftp/cmds.c:1684:25: error: 'free' called on pointer 'globbed' with nonzero offset 4 [-Werror=free-nonheap-object]
 1684 |                         free((char *)globbed);
      |                         ^~~~~~~~~~~~~~~~~~~~~
C:/ReactOS/reactos/base/applications/network/ftp/cmds.c:1669:19: note: returned from 'glob'
 1669 |         globbed = glob(*cpp);
      |                   ^~~~~~~~~~

In our port glob is a dummy that always returns NULL, and the original code does not have a free here, either.
2026-03-18 17:29:12 +02:00
Timo Kreuzer 504ec9a619 [NSLOOKUP] Fix GCC 13 stringop-truncation warning
Don't strncpy 0 bytes. Also add an assert that source and dest are not the same.

C:/ReactOS/reactos/base/applications/network/nslookup/utility.c: In function 'ReverseIP':
C:/ReactOS/reactos/base/applications/network/nslookup/utility.c:264:5: error: 'strncpy' destination unchanged after copying no bytes [-Werror=stringop-truncation]
  264 |     strncpy( &pReturn[k], &pIP[i + 1], (j - i) );
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2026-03-18 17:29:12 +02:00
Václav Zouzalík 0f021bf73a [PING] Update Czech (cs-CZ) translation (#8729) 2026-03-17 17:32:12 +01:00
Eric Kohl 3f9f0e2a96 [PSDK][DHCSCSVC][IPCONFIG] Add DhcpHandlePnpEvent stub and use it in ipconfig
Ipconfig uses DhcpHandlePnpEvent to notify the dhcp client of a changed class id.
2026-03-08 12:22:47 +01:00
7b426bc8b6 [APPLICATIONS] Improve and fix Polish (pl-PL) translation (#8030)
Update translations for:
- EVENTVWR, MSPAINT, NOTEPAD, RAPPS, REGEDIT, TASKMGR;
- IPCONFIG, TRACERT, WLANCONF.

CORE-20207

Co-authored-by: Adam Słaboń <[email protected]>
Co-authored-by: Hermès BÉLUSCA - MAÏTO <[email protected]>
2026-02-15 17:51:15 +01:00
Daniel Zimmermann 55a3a96849 [NETSH] Fix incorrect variable usage in swprintf call (#8482)
- swprintf should call with the input string and not with the undefined allocated string from HeapAlloc.

Addendum to bfee65f62c.
2025-11-28 21:20:30 +03:00
Eric Kohl 0135440d50 [NETSH] Implement MakeString and FreeString
Used by the 'winsock show catalog' command.
2025-11-22 16:53:33 +01:00
Eric Kohl bb7a6134c4 [SRVSVC][WKSSVC][NET] Improve server and workstation statistics
- Server and Workstation services return proper boot time.
- Net formats boot time properly.

CORE-19198
2025-11-09 15:22:32 +01:00
Eric Kohl 0362651eb8 [NETSH] Fix a type in the interpreter 2025-11-08 20:32:53 +01:00
Eric Kohl 3398506341 [NETSH] Implement alias, unalias and show alias commands
Alias processing in the command interpreter is not implemented yet.
2025-11-08 18:58:49 +01:00
Eric Kohl 97232454a5 [NETSH] Improve error message output 2025-11-08 18:26:11 +01:00
Eric Kohl 500dcd3da5 [NETSH] Call a contexts connect function on a context change 2025-11-08 16:31:41 +01:00
Eric Kohl feb9ba9a7f [NETSH] Implement and use the PrintError function 2025-11-04 22:33:19 +01:00
Eric Kohl 420799228d [NETSH] Implement the -r (remote) option and set machine command
Also:
- Start all usage texts with a newline.
- Add some error messages.
- Fix a bug in the command interpreter.
2025-11-02 22:37:16 +01:00
Eric Kohl 4ad647fb5c [NETSH] Improvements to the command line evaluation and the command interpreter
- Interpreter functions return error code instead of boolean
2025-11-02 13:51:02 +01:00
Eric Kohl 20eee6d362 [NETSH] Support the -c (context) command line option 2025-11-01 21:30:08 +01:00
Eric Kohl 2e7a1768fb [NETSH] Implement the offline, online and related commands 2025-11-01 18:49:44 +01:00
Eric Kohl 4df8fbf9c2 [NETSH] Add a special code path to execute commands that follow the pushd command
This enables the execution of commands like 'pushd interface ip' which is emitted by the dump command of WinXPs ifmon.dll.
2025-10-18 01:37:51 +02:00
Eric Kohl bfee65f62c [NETSH] Implement MakeQuotedString() and FreeQuotedString()
These functions are used by WinXPs ifmon.dll.
2025-10-17 15:12:44 +02:00
Eric Kohl 78a73720cc [NETSH] Fix help output
- Increase the output buffer for context and group help texts.
- Use a heap buffers to load and format the command help texts.
- Pass the full command name to FormatMessage to make help output work with WinXP helpers.
- Adjust the internal help texts accordingly.
2025-10-17 12:45:28 +02:00