[PATCH] services: Fix some weird sizeof usages.
Christian Costa
titan.costa at gmail.com
Sun Oct 21 10:55:08 CDT 2012
---
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 bf8ce80..a07665f 100644
--- a/programs/services/rpc.c
+++ b/programs/services/rpc.c
@@ -940,7 +940,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 );
@@ -952,7 +952,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