Obvious bug, this is supposed to be a string, but a struct is passed instead, fails on some uncommon calling conventions.