Commit 1dae68e7 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

winmm: Simplify MCI_DumpCommandTable a bit.

parent 798edfec
...@@ -625,7 +625,6 @@ static BOOL MCI_DumpCommandTable(UINT uTbl) ...@@ -625,7 +625,6 @@ static BOOL MCI_DumpCommandTable(UINT uTbl)
{ {
const BYTE* lmem; const BYTE* lmem;
LPCWSTR str; LPCWSTR str;
DWORD flg;
WORD eid; WORD eid;
if (!MCI_IsCommandTableValid(uTbl)) { if (!MCI_IsCommandTableValid(uTbl)) {
...@@ -636,9 +635,10 @@ static BOOL MCI_DumpCommandTable(UINT uTbl) ...@@ -636,9 +635,10 @@ static BOOL MCI_DumpCommandTable(UINT uTbl)
lmem = S_MciCmdTable[uTbl].lpTable; lmem = S_MciCmdTable[uTbl].lpTable;
do { do {
do { do {
/* DWORD flg; */
str = (LPCWSTR)lmem; str = (LPCWSTR)lmem;
lmem += (strlenW(str) + 1) * sizeof(WCHAR); lmem += (strlenW(str) + 1) * sizeof(WCHAR);
flg = *(const DWORD*)lmem; /* flg = *(const DWORD*)lmem; */
eid = *(const WORD*)(lmem + sizeof(DWORD)); eid = *(const WORD*)(lmem + sizeof(DWORD));
/* TRACE("cmd=%s %08lx %04x\n", debugstr_w(str), flg, eid); */ /* TRACE("cmd=%s %08lx %04x\n", debugstr_w(str), flg, eid); */
lmem += sizeof(DWORD) + sizeof(WORD); lmem += sizeof(DWORD) + sizeof(WORD);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment