advapi32: Avoid signed-unsigned integer comparisons
Andrew Talbot
andrew.talbot at talbotville.com
Fri Dec 28 16:05:26 CST 2012
Changelog:
advapi32: Avoid signed-unsigned integer comparisons.
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);
More information about the wine-patches
mailing list