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.
2009/9/18 Brian Nguyen <mtxcoll@gmail.com>:
> Here's an updated patch that stores the string in an En.rc resource file andI think that should work, but how about something like this:
> loads it using a wrapper for LoadString. How does this look?
>
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.