Fix Unicode support for SetupApi INFs

Alexandre Julliard julliard at
Wed Jan 28 12:48:10 CST 2004

Robert Shearman <R.J.Shearman at> 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.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list