So the question is now: Why is device-type returning 'mswindows
(device-type (frame-device)) ==> x
(featurep 'mswindows) ==> t
The code is using the later test. If the code was testing that
(eq 'mswindows (device-type locale)) or some such, then it might work...