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

Vitaliy Margolen wine-patches at kievinfo.com
Thu Jan 25 00:42:15 CST 2007


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: 15d6fb696673188c053d32b8509617a4c0583791.diff
Type: text/x-patch
Size: 5410 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070124/7f64b5a3/15d6fb696673188c053d32b8509617a4c0583791-0001.bin


More information about the wine-patches mailing list