[gdi,gfx] fix gfx dump variables and format string
This commit is contained in:
parent
66e4188514
commit
064a58912b
@ -918,9 +918,9 @@ static void dump_cmd(const RDPGFX_SURFACE_COMMAND* cmd, UINT32 frameId)
|
||||
static UINT64 xxx = 0;
|
||||
const char* path = "/tmp/dump/";
|
||||
WINPR_ASSERT(cmd);
|
||||
char* fname[1024] = { 0 };
|
||||
char fname[1024] = { 0 };
|
||||
|
||||
snprintf(fname, sizeof(fname), "%s/%08" PRIx32 ".raw", path, xxx++);
|
||||
snprintf(fname, sizeof(fname), "%s/%08" PRIx64 ".raw", path, xxx++);
|
||||
FILE* fp = fopen(fname, "w");
|
||||
if (!fp)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user