Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
51a4fce5
Commit
51a4fce5
authored
May 04, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32/tests: Simplify IMalloc handling.
parent
3804423f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
+2
-14
Makefile.in
dlls/oledb32/tests/Makefile.in
+1
-1
database.c
dlls/oledb32/tests/database.c
+1
-13
No files found.
dlls/oledb32/tests/Makefile.in
View file @
51a4fce5
TESTDLL
=
oledb32.dll
IMPORTS
=
uuid
shell32
oleaut32 ole32 user32 gdi32 advapi32
IMPORTS
=
uuid oleaut32 ole32 user32 gdi32 advapi32
C_SRCS
=
\
convert.c
\
...
...
dlls/oledb32/tests/database.c
View file @
51a4fce5
...
...
@@ -29,7 +29,6 @@
#include "ole2.h"
#include "msdadc.h"
#include "msdasc.h"
#include "shlobj.h"
#include "msdaguid.h"
#include "initguid.h"
#include "oledberr.h"
...
...
@@ -56,14 +55,6 @@ static void test_GetDataSource(WCHAR *initstring)
if
(
SUCCEEDED
(
hr
))
{
IDBProperties
*
props
=
NULL
;
IMalloc
*
ppM
=
NULL
;
hr
=
SHGetMalloc
(
&
ppM
);
if
(
FAILED
(
hr
))
{
ok
(
0
,
"Couldn't get IMalloc object.
\n
"
);
goto
end
;
}
hr
=
IDBInitialize_QueryInterface
(
dbinit
,
&
IID_IDBProperties
,
(
void
**
)
&
props
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
@@ -84,15 +75,12 @@ static void test_GetDataSource(WCHAR *initstring)
pInfoset
->
rgPropertyInfos
[
i
].
vtType
);
}
IMalloc_Free
(
ppM
,
ary
);
CoTaskMemFree
(
ary
);
}
IDBProperties_Release
(
props
);
}
IMalloc_Release
(
ppM
);
end:
IDBInitialize_Release
(
dbinit
);
}
...
...
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