[PATCH 2/2] server: Reverse return value and status in token_access_check to be consistent.[try2]

Vitaliy Margolen wine-patches at kievinfo.com
Mon Jan 22 13:07:10 CST 2007


Cleanup part of without tests.

Change Log:
 - server: Reverse return value and status in token_access_check to be consistent.
 - server: Do not set successful status by default. Set it explicitly in each case.

It is some-what confusing to have token_access_check return 2 statuses. And
even more so, when it doesn't match with the native. Usually function returns
a status if call to it succeeded (all parameters are valid, caller allowed
to perform requested operation, etc). And extra parameters would indicate
if some check(s) succeeded or not.
---
 server/token.c |   63 ++++++++++++++++++++++---------------------------------
 1 files changed, 25 insertions(+), 38 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d77a7327485e40c20b076431e562323d58c6a8cb.diff
Type: text/x-patch
Size: 5410 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070122/b905b912/d77a7327485e40c20b076431e562323d58c6a8cb-0001.bin


More information about the wine-patches mailing list