[PATCH] services: Fix non common sizeof usages. (resend)
Christian Costa
titan.costa at gmail.com
Wed Oct 31 03:57:04 CDT 2012
Use parentesis is more common in Wine code and this makes all sizeof conform to file style anyway.
---
programs/services/rpc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/services/rpc.c b/programs/services/rpc.c
index 166e2b7..1ba3177 100644
--- a/programs/services/rpc.c
+++ b/programs/services/rpc.c
@@ -987,7 +987,7 @@ BOOL service_send_command( struct service_entry *service, HANDLE pipe,
*result = (!r ? GetLastError() : ERROR_WRITE_FAULT);
return FALSE;
}
- r = ReadFile(pipe, result, sizeof *result, &count, &overlapped);
+ r = ReadFile(pipe, result, sizeof(*result), &count, &overlapped);
if (!r && GetLastError() == ERROR_IO_PENDING)
{
ret = WaitForSingleObject( service->overlapped_event, service_pipe_timeout );
@@ -999,7 +999,7 @@ BOOL service_send_command( struct service_entry *service, HANDLE pipe,
}
r = GetOverlappedResult( pipe, &overlapped, &count, FALSE );
}
- if (!r || count != sizeof *result)
+ if (!r || count != sizeof(*result))
{
WINE_ERR("service protocol error - failed to read pipe "
"r = %d count = %d!\n", r, count);
More information about the wine-patches
mailing list