Thanks for the suggestion; I didn't realize you could get a pointer to the string itself. Here's an updated patch. I also changed the wording some more to make it less similar to the native dxdiag.

On Sat, Sep 19, 2009 at 12:05 PM, Henri Verbeet <hverbeet@gmail.com> wrote:
2009/9/18 Brian Nguyen <mtxcoll@gmail.com>:
> Here's an updated patch that stores the string in an En.rc resource file and
> loads it using a wrapper for LoadString. How does this look?
>
I think that should work, but how about something like this:

static const WCHAR *DxDiag_LoadString(UINT id)
{
� �static const WCHAR failed[] = { 'F', 'a', 'i', 'l', 'e', 'd', '!', '\0' };
� �const WCHAR *ret;

� �if (!LoadStringW(GetModuleHandleW(NULL), id, (WCHAR *)&ret, 0))
� �{
� � � �WINE_FIXME("Failed to load string %u, last error %u.\n",
� � � � � � � �id, GetLastError());
� � � �return failed;
� �}

� �return ret;
}

> + � �DXDIAG_MESSAGE_HELP,
You have a trailing space here.



--
Brian Nguyen
mtxcoll@gmail.com