kernel32: Check that sysctl() call succeeded before using its output.