Fix uninitialized strings

serial_number cannot be NULL because it's used in a wcscmp later
also use a slightly better parameter name