[ARP] Improvements to ARP

- Print message on failed memory allocations.
- Functions return error code instead of exit code.
- Convert error code to exit code in the main function only.
- Always free the allocated memory.
- Fix bug from previous commit: Use _tprintf instead _putts to print messages.
This commit is contained in:
Eric Kohl 2020-05-10 00:46:42 +02:00
parent fc0a0b9f84
commit e31069738f
2 changed files with 154 additions and 111 deletions

View file

@ -74,6 +74,14 @@ Interface: %1!s! --- 0x%2!lx!
Internet Address Physical Address Type
.
MessageId=10004
SymbolicName=MSG_ARP_NO_MEMORY
Severity=Success
Facility=System
Language=English
ARP: not enough memory
.
MessageId=10005
SymbolicName=MSG_ARP_OTHER
Severity=Success