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
02657699
Commit
02657699
authored
Dec 11, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Dec 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix double-free in tests.
Found by Valgrind.
parent
7f9d5aad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vartype.c
dlls/oleaut32/tests/vartype.c
+3
-2
No files found.
dlls/oleaut32/tests/vartype.c
View file @
02657699
...
...
@@ -4889,7 +4889,8 @@ static void test_VarBstrFromR4(void)
}
}
#define BSTR_DATE(dt,str) SysFreeString(bstr); bstr = NULL; \
#define BSTR_DATE(dt,str) \
bstr = NULL; \
hres = pVarBstrFromDate(dt,lcid,LOCALE_NOUSEROVERRIDE,&bstr); \
if (bstr) {WideCharToMultiByte(CP_ACP, 0, bstr, -1, buff, sizeof(buff), 0, 0); SysFreeString(bstr);} \
else buff[0] = 0; \
...
...
@@ -4901,7 +4902,7 @@ static void test_VarBstrFromDate(void)
char
buff
[
256
];
LCID
lcid
;
HRESULT
hres
;
BSTR
bstr
=
NULL
;
BSTR
bstr
;
CHECKPTR
(
VarBstrFromDate
);
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
);
...
...
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