=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: netapi32/tests: Use BOOL type where appropriate.
Alexandre Julliard
julliard at winehq.org
Wed Nov 13 13:34:39 CST 2013
Module: wine
Branch: master
Commit: b7dc0021583ede4af0a0aa95fc929a64221e0895
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7dc0021583ede4af0a0aa95fc929a64221e0895
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Tue Nov 12 22:11:10 2013 +0100
netapi32/tests: Use BOOL type where appropriate.
---
dlls/netapi32/tests/access.c | 6 +++---
dlls/netapi32/tests/wksta.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/netapi32/tests/access.c b/dlls/netapi32/tests/access.c
index a8c43c3..b71e1c8 100644
--- a/dlls/netapi32/tests/access.c
+++ b/dlls/netapi32/tests/access.c
@@ -66,7 +66,7 @@ static NET_API_STATUS (WINAPI *pNetUserDel)(LPCWSTR,LPCWSTR)=NULL;
static NET_API_STATUS (WINAPI *pNetLocalGroupGetInfo)(LPCWSTR,LPCWSTR,DWORD,LPBYTE*)=NULL;
static NET_API_STATUS (WINAPI *pNetLocalGroupGetMembers)(LPCWSTR,LPCWSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,PDWORD_PTR)=NULL;
-static int init_access_tests(void)
+static BOOL init_access_tests(void)
{
DWORD dwSize;
BOOL rc;
@@ -77,14 +77,14 @@ static int init_access_tests(void)
if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
{
win_skip("GetUserNameW is not available.\n");
- return 0;
+ return FALSE;
}
ok(rc, "User Name Retrieved\n");
computer_name[0] = 0;
dwSize = sizeof(computer_name)/sizeof(WCHAR);
ok(GetComputerNameW(computer_name, &dwSize), "Computer Name Retrieved\n");
- return 1;
+ return TRUE;
}
static NET_API_STATUS create_test_user(void)
diff --git a/dlls/netapi32/tests/wksta.c b/dlls/netapi32/tests/wksta.c
index 5d1d8ac..ee3004e 100644
--- a/dlls/netapi32/tests/wksta.c
+++ b/dlls/netapi32/tests/wksta.c
@@ -44,7 +44,7 @@ static NET_API_STATUS (WINAPI *pNetGetJoinInformation)(LPCWSTR,LPWSTR*,PNETSETUP
static WCHAR user_name[UNLEN + 1];
static WCHAR computer_name[MAX_COMPUTERNAME_LENGTH + 1];
-static int init_wksta_tests(void)
+static BOOL init_wksta_tests(void)
{
DWORD dwSize;
BOOL rc;
@@ -54,14 +54,14 @@ static int init_wksta_tests(void)
rc=GetUserNameW(user_name, &dwSize);
if (rc==FALSE && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) {
win_skip("GetUserNameW is not implemented\n");
- return 0;
+ return FALSE;
}
ok(rc, "User Name Retrieved\n");
computer_name[0] = 0;
dwSize = sizeof(computer_name)/sizeof(computer_name[0]);
ok(GetComputerNameW(computer_name, &dwSize), "Computer Name Retrieved\n");
- return 1;
+ return TRUE;
}
static void run_get_comp_name_tests(void)
More information about the wine-cvs
mailing list