mirror of
https://github.com/reactos/wine.git
synced 2025-02-21 21:32:01 +00:00
d3dxof: Fix guid syntax.
This commit is contained in:
parent
7d71805afc
commit
ce313a5b0e
@ -77,7 +77,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3dxof);
|
|||||||
#define TOKEN_CSTRING 51
|
#define TOKEN_CSTRING 51
|
||||||
#define TOKEN_ARRAY 52
|
#define TOKEN_ARRAY 52
|
||||||
|
|
||||||
#define CLSIDFMT "<%08X-%04X-%04X-%02X%02X%02X%02X%02X%02X%02X%02X>"
|
#define CLSIDFMT "<%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X>"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/* Buffer to parse */
|
/* Buffer to parse */
|
||||||
@ -383,7 +383,7 @@ static BOOL is_guid(parse_buffer* buf)
|
|||||||
}
|
}
|
||||||
tmp[pos++] = '>';
|
tmp[pos++] = '>';
|
||||||
tmp[pos] = 0;
|
tmp[pos] = 0;
|
||||||
if (pos != 37 /* <+35+> */)
|
if (pos != 38 /* <+36+> */)
|
||||||
{
|
{
|
||||||
TRACE("Wrong guid %s (%d) \n", tmp, pos);
|
TRACE("Wrong guid %s (%d) \n", tmp, pos);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -30,10 +30,10 @@ char template[] =
|
|||||||
"xof 0302txt 0064\n"
|
"xof 0302txt 0064\n"
|
||||||
"template Header\n"
|
"template Header\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
"<3D82AB43-62DA-11CF-AB390020AF71E433>\n"
|
"<3D82AB43-62DA-11CF-AB39-0020AF71E433>\n"
|
||||||
"WORD major ;\n"
|
"WORD major;\n"
|
||||||
"WORD minor ;\n"
|
"WORD minor;\n"
|
||||||
"DWORD flags ;\n"
|
"DWORD flags;\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
static void init_function_pointers(void)
|
static void init_function_pointers(void)
|
||||||
@ -79,7 +79,6 @@ static void test_d3dxof(void)
|
|||||||
ref = IDirectXFile_Release(lpDirectXFile);
|
ref = IDirectXFile_Release(lpDirectXFile);
|
||||||
ok(ref == 1, "Got refcount %ld, expected 1\n", ref);
|
ok(ref == 1, "Got refcount %ld, expected 1\n", ref);
|
||||||
|
|
||||||
/* RegisterTemplates does not support txt format yet */
|
|
||||||
hr = IDirectXFile_RegisterTemplates(lpDirectXFile, template, strlen(template));
|
hr = IDirectXFile_RegisterTemplates(lpDirectXFile, template, strlen(template));
|
||||||
ok(hr == DXFILE_OK, "IDirectXFileImpl_RegisterTemplates: %x\n", hr);
|
ok(hr == DXFILE_OK, "IDirectXFileImpl_RegisterTemplates: %x\n", hr);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user