]> xenbits.xensource.com Git - pvdrivers/win/xenvbd.git/commit
Don't use C runtime version of toupper() 8.1.0-rc8
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 10 Dec 2015 11:39:37 +0000 (11:39 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Thu, 10 Dec 2015 13:34:02 +0000 (13:34 +0000)
commitece509bd731b4320ff1d624bff6dbbc9d7a26b80
tree066d62d1c16340f76a22f4a96938440db40e2fa9
parent8b44caccfed5d8c68c72e13c09ee0930e35df78d
Don't use C runtime version of toupper()

It seems that, despite its trivial functionality, the runtime implementation
insists on converting to Unicode! This means the function is actually only
safe at PASSIVE_LEVEL.
This patch implements __toupper() as a replacement with no such hidden
nastiness and modifies callers to use that.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenvbd/fdo.c
src/xenvbd/util.h