Module: wine Branch: master Commit: d1a5ce537d42a0ea666cfe063f31f9ebd221b7e5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d1a5ce537d42a0ea666cfe063f...
Author: André Hentschel nerv@dawncrow.de Date: Wed Apr 18 00:12:07 2012 +0200
winhlp32: Remove unneeded shadow variables.
---
programs/winhlp32/hlpfile.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/programs/winhlp32/hlpfile.c b/programs/winhlp32/hlpfile.c index 5f54bd3..b34c42f 100644 --- a/programs/winhlp32/hlpfile.c +++ b/programs/winhlp32/hlpfile.c @@ -1527,7 +1527,6 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd, case 0x88: { BYTE type = format[1]; - LONG size;
/* FIXME: we don't use 'BYTE pos = (*format - 0x86);' for the image position */ format += 2; @@ -2078,9 +2077,9 @@ static BOOL HLPFILE_SystemCommands(HLPFILE* hlpfile) if (hlpfile->windows) { - unsigned flags = GET_USHORT(ptr, 4); HLPFILE_WINDOWINFO* wi = &hlpfile->windows[hlpfile->numWindows - 1];
+ flags = GET_USHORT(ptr, 4); if (flags & 0x0001) strcpy(wi->type, &str[2]); else wi->type[0] = '\0'; if (flags & 0x0002) strcpy(wi->name, &str[12]);