Robert Shearman R.J.Shearman@warwick.ac.uk writes:
A well meaning individual implemented Unicode support for SetupApi. However, the detection for whether a file was Unicode was slightly broken because RtlIsTextUnicode only returns true if all the flags input were output (and NULL means all flags). Since some are contradictory this will never return TRUE. I only set the signature detection since heuristics will probably take a while on larger files.
Actually that's a bug in RtlIsTextUnicode. Passing NULL as flags is legitimate and means to do all the available tests; it certainly doesn't mean to always return FALSE, so it will have to be fixed to avoid contradictory tests.