Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b7dc0021
Commit
b7dc0021
authored
Nov 12, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32/tests: Use BOOL type where appropriate.
parent
4ecc9788
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
access.c
dlls/netapi32/tests/access.c
+3
-3
wksta.c
dlls/netapi32/tests/wksta.c
+3
-3
No files found.
dlls/netapi32/tests/access.c
View file @
b7dc0021
...
@@ -66,7 +66,7 @@ static NET_API_STATUS (WINAPI *pNetUserDel)(LPCWSTR,LPCWSTR)=NULL;
...
@@ -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
*
pNetLocalGroupGetInfo
)(
LPCWSTR
,
LPCWSTR
,
DWORD
,
LPBYTE
*
)
=
NULL
;
static
NET_API_STATUS
(
WINAPI
*
pNetLocalGroupGetMembers
)(
LPCWSTR
,
LPCWSTR
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
,
PDWORD_PTR
)
=
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
;
DWORD
dwSize
;
BOOL
rc
;
BOOL
rc
;
...
@@ -77,14 +77,14 @@ static int init_access_tests(void)
...
@@ -77,14 +77,14 @@ static int init_access_tests(void)
if
(
rc
==
FALSE
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
if
(
rc
==
FALSE
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
{
win_skip
(
"GetUserNameW is not available.
\n
"
);
win_skip
(
"GetUserNameW is not available.
\n
"
);
return
0
;
return
FALSE
;
}
}
ok
(
rc
,
"User Name Retrieved
\n
"
);
ok
(
rc
,
"User Name Retrieved
\n
"
);
computer_name
[
0
]
=
0
;
computer_name
[
0
]
=
0
;
dwSize
=
sizeof
(
computer_name
)
/
sizeof
(
WCHAR
);
dwSize
=
sizeof
(
computer_name
)
/
sizeof
(
WCHAR
);
ok
(
GetComputerNameW
(
computer_name
,
&
dwSize
),
"Computer Name Retrieved
\n
"
);
ok
(
GetComputerNameW
(
computer_name
,
&
dwSize
),
"Computer Name Retrieved
\n
"
);
return
1
;
return
TRUE
;
}
}
static
NET_API_STATUS
create_test_user
(
void
)
static
NET_API_STATUS
create_test_user
(
void
)
...
...
dlls/netapi32/tests/wksta.c
View file @
b7dc0021
...
@@ -44,7 +44,7 @@ static NET_API_STATUS (WINAPI *pNetGetJoinInformation)(LPCWSTR,LPWSTR*,PNETSETUP
...
@@ -44,7 +44,7 @@ static NET_API_STATUS (WINAPI *pNetGetJoinInformation)(LPCWSTR,LPWSTR*,PNETSETUP
static
WCHAR
user_name
[
UNLEN
+
1
];
static
WCHAR
user_name
[
UNLEN
+
1
];
static
WCHAR
computer_name
[
MAX_COMPUTERNAME_LENGTH
+
1
];
static
WCHAR
computer_name
[
MAX_COMPUTERNAME_LENGTH
+
1
];
static
int
init_wksta_tests
(
void
)
static
BOOL
init_wksta_tests
(
void
)
{
{
DWORD
dwSize
;
DWORD
dwSize
;
BOOL
rc
;
BOOL
rc
;
...
@@ -54,14 +54,14 @@ static int init_wksta_tests(void)
...
@@ -54,14 +54,14 @@ static int init_wksta_tests(void)
rc
=
GetUserNameW
(
user_name
,
&
dwSize
);
rc
=
GetUserNameW
(
user_name
,
&
dwSize
);
if
(
rc
==
FALSE
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
if
(
rc
==
FALSE
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
win_skip
(
"GetUserNameW is not implemented
\n
"
);
win_skip
(
"GetUserNameW is not implemented
\n
"
);
return
0
;
return
FALSE
;
}
}
ok
(
rc
,
"User Name Retrieved
\n
"
);
ok
(
rc
,
"User Name Retrieved
\n
"
);
computer_name
[
0
]
=
0
;
computer_name
[
0
]
=
0
;
dwSize
=
sizeof
(
computer_name
)
/
sizeof
(
computer_name
[
0
]);
dwSize
=
sizeof
(
computer_name
)
/
sizeof
(
computer_name
[
0
]);
ok
(
GetComputerNameW
(
computer_name
,
&
dwSize
),
"Computer Name Retrieved
\n
"
);
ok
(
GetComputerNameW
(
computer_name
,
&
dwSize
),
"Computer Name Retrieved
\n
"
);
return
1
;
return
TRUE
;
}
}
static
void
run_get_comp_name_tests
(
void
)
static
void
run_get_comp_name_tests
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment