Fix typo: WIN32 -> _WIN32, WIN64 -> _WIN64
Replace magic number with symbolic constant
Get rid of unnecessary error checking
Detect malformed hex mac address