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
09c0bf20
Commit
09c0bf20
authored
Jun 19, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Jun 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Free the correct pointers.
parent
a3d71559
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ds.c
dlls/netapi32/ds.c
+1
-0
ds.c
dlls/netapi32/tests/ds.c
+3
-3
No files found.
dlls/netapi32/ds.c
View file @
09c0bf20
...
@@ -99,6 +99,7 @@ DWORD WINAPI DsRoleGetPrimaryDomainInformation(
...
@@ -99,6 +99,7 @@ DWORD WINAPI DsRoleGetPrimaryDomainInformation(
if
(
!
Buffer
)
return
ERROR_INVALID_PARAMETER
;
if
(
!
Buffer
)
return
ERROR_INVALID_PARAMETER
;
if
((
InfoLevel
<
DsRolePrimaryDomainInfoBasic
)
||
(
InfoLevel
>
DsRoleOperationState
))
return
ERROR_INVALID_PARAMETER
;
if
((
InfoLevel
<
DsRolePrimaryDomainInfoBasic
)
||
(
InfoLevel
>
DsRoleOperationState
))
return
ERROR_INVALID_PARAMETER
;
*
Buffer
=
NULL
;
switch
(
InfoLevel
)
switch
(
InfoLevel
)
{
{
case
DsRolePrimaryDomainInfoBasic
:
case
DsRolePrimaryDomainInfoBasic
:
...
...
dlls/netapi32/tests/ds.c
View file @
09c0bf20
...
@@ -60,17 +60,17 @@ static void test_get(void)
...
@@ -60,17 +60,17 @@ static void test_get(void)
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
pDsRoleGetPrimaryDomainInformation
(
NULL
,
DsRolePrimaryDomainInfoBasic
,
(
PBYTE
*
)
&
dpdi
);
ret
=
pDsRoleGetPrimaryDomainInformation
(
NULL
,
DsRolePrimaryDomainInfoBasic
,
(
PBYTE
*
)
&
dpdi
);
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got (%d)
\n
"
,
ret
);
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got (%d)
\n
"
,
ret
);
pDsRoleFreeMemory
(
&
dpdi
);
pDsRoleFreeMemory
(
dpdi
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
pDsRoleGetPrimaryDomainInformation
(
NULL
,
DsRoleUpgradeStatus
,
(
PBYTE
*
)
&
dusi
);
ret
=
pDsRoleGetPrimaryDomainInformation
(
NULL
,
DsRoleUpgradeStatus
,
(
PBYTE
*
)
&
dusi
);
todo_wine
{
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got (%d)
\n
"
,
ret
);
}
todo_wine
{
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got (%d)
\n
"
,
ret
);
}
pDsRoleFreeMemory
(
&
dusi
);
pDsRoleFreeMemory
(
dusi
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
pDsRoleGetPrimaryDomainInformation
(
NULL
,
DsRoleOperationState
,
(
PBYTE
*
)
&
dosi
);
ret
=
pDsRoleGetPrimaryDomainInformation
(
NULL
,
DsRoleOperationState
,
(
PBYTE
*
)
&
dosi
);
todo_wine
{
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got (%d)
\n
"
,
ret
);
}
todo_wine
{
ok
(
ret
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got (%d)
\n
"
,
ret
);
}
pDsRoleFreeMemory
(
&
dosi
);
pDsRoleFreeMemory
(
dosi
);
}
}
...
...
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