Module: wine Branch: master Commit: a377563b00b0ac1bb7d9f788cb000a4335e6725d URL: http://source.winehq.org/git/wine.git/?a=commit;h=a377563b00b0ac1bb7d9f788cb...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Fri Dec 28 22:05:26 2012 +0000
advapi32: Avoid signed-unsigned integer comparisons.
---
dlls/advapi32/eventlog.c | 4 ++-- dlls/advapi32/security.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/advapi32/eventlog.c b/dlls/advapi32/eventlog.c index 38c533a..0922fff 100644 --- a/dlls/advapi32/eventlog.c +++ b/dlls/advapi32/eventlog.c @@ -651,7 +651,7 @@ BOOL WINAPI ReportEventA ( HANDLE hEventLog, WORD wType, WORD wCategory, DWORD d { LPWSTR *wideStrArray; UNICODE_STRING str; - int i; + UINT i; BOOL ret;
FIXME("(%p,0x%04x,0x%04x,0x%08x,%p,0x%04x,0x%08x,%p,%p): stub\n", hEventLog, @@ -684,7 +684,7 @@ BOOL WINAPI ReportEventA ( HANDLE hEventLog, WORD wType, WORD wCategory, DWORD d BOOL WINAPI ReportEventW( HANDLE hEventLog, WORD wType, WORD wCategory, DWORD dwEventID, PSID lpUserSid, WORD wNumStrings, DWORD dwDataSize, LPCWSTR *lpStrings, LPVOID lpRawData ) { - int i; + UINT i;
FIXME("(%p,0x%04x,0x%04x,0x%08x,%p,0x%04x,0x%08x,%p,%p): stub\n", hEventLog, wType, wCategory, dwEventID, lpUserSid, wNumStrings, dwDataSize, lpStrings, lpRawData); diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c index d857591..5a74783 100644 --- a/dlls/advapi32/security.c +++ b/dlls/advapi32/security.c @@ -4785,7 +4785,7 @@ static BOOL DumpAce(LPVOID pace, WCHAR **pwptr, ULONG *plen) static BOOL DumpAcl(PACL pacl, WCHAR **pwptr, ULONG *plen, BOOL protected, BOOL autoInheritReq, BOOL autoInherited) { WORD count; - int i; + UINT i;
if (protected) DumpString(SDDL_PROTECTED, -1, pwptr, plen);