Device: NULL check in GetPrimaryMonitorResolution