winmm: Simplify MCI_DumpCommandTable a bit.
Gerald Pfeifer
gerald at pfeifer.com
Tue May 4 07:10:26 CDT 2010
I am not sure about this. Perhaps remove the TRACE, which is disabled,
altogether, remove this part of the output from TRACE (since it is not
used otherwise), or at least move flg to an innermore level as other
options?
Gerald
---
dlls/winmm/mci.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/winmm/mci.c b/dlls/winmm/mci.c
index 8a66ab4..785326a 100644
--- a/dlls/winmm/mci.c
+++ b/dlls/winmm/mci.c
@@ -624,7 +624,6 @@ static BOOL MCI_DumpCommandTable(UINT uTbl)
{
const BYTE* lmem;
LPCWSTR str;
- DWORD flg;
WORD eid;
if (!MCI_IsCommandTableValid(uTbl)) {
@@ -637,9 +636,9 @@ static BOOL MCI_DumpCommandTable(UINT uTbl)
do {
str = (LPCWSTR)lmem;
lmem += (strlenW(str) + 1) * sizeof(WCHAR);
- flg = *(const DWORD*)lmem;
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), *(const DWORD*)lmem, eid); */
lmem += sizeof(DWORD) + sizeof(WORD);
} while (eid != MCI_END_COMMAND && eid != MCI_END_COMMAND_LIST);
/* EPP TRACE(" => end of command%s\n", (eid == MCI_END_COMMAND_LIST) ? " list" : ""); */
--
1.6.6.2
More information about the wine-patches
mailing list