d3drm: Use debugstr_a to print a string that can be NULL.

Henri Verbeet hverbeet at gmail.com
Mon Mar 14 04:56:25 CDT 2016


On 14 March 2016 at 10:36, Michael Stefaniuc <mstefani at redhat.de> wrote:
> -    TRACE("Mesh name is '%s'\n", This->name ? This->name : "");
> +    TRACE("Mesh name is '%s'\n", debugstr_a(This->name));
You should remove the quotes, since debugstr_a() also adds quotes.
Note that just being external data is enough reason to use
debugstr_a(), it doesn't matter much if it can be NULL or not in that
regard.



More information about the wine-devel mailing list