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
2f302cfe
Commit
2f302cfe
authored
Dec 07, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Dec 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw/tests: Avoid using a freed IUniformResourceLocatorA variable.
Spotted with Valgrind.
parent
a065d6fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
intshcut.c
dlls/shdocvw/tests/intshcut.c
+4
-4
No files found.
dlls/shdocvw/tests/intshcut.c
View file @
2f302cfe
...
...
@@ -241,7 +241,7 @@ static void test_ReadAndWriteProperties(void)
LPSTR
url
=
NULL
;
/* Now read that .url file back in. */
hr
=
urlAFromFile
->
lpVtbl
->
QueryInterface
(
urlA
,
&
IID_IPersistFile
,
(
void
**
)
&
pf
);
hr
=
urlAFromFile
->
lpVtbl
->
QueryInterface
(
urlA
FromFile
,
&
IID_IPersistFile
,
(
void
**
)
&
pf
);
ok
(
hr
==
S_OK
,
"Failed to get the IPersistFile for reading. hr=0x%x
\n
"
,
hr
);
hr
=
IPersistFile_Load
(
pf
,
fileNameW
,
0
);
...
...
@@ -249,11 +249,11 @@ static void test_ReadAndWriteProperties(void)
IPersistFile_Release
(
pf
);
hr
=
urlA
->
lpVtbl
->
GetURL
(
urlAFromFile
,
&
url
);
hr
=
urlA
FromFile
->
lpVtbl
->
GetURL
(
urlAFromFile
,
&
url
);
ok
(
lstrcmp
(
url
,
testurl
)
==
0
,
"Wrong url read from file: %s
\n
"
,
url
);
hr
=
urlA
->
lpVtbl
->
QueryInterface
(
urlAFromFile
,
&
IID_IPropertySetStorage
,
(
void
**
)
&
pPropSetStg
);
hr
=
urlA
FromFile
->
lpVtbl
->
QueryInterface
(
urlAFromFile
,
&
IID_IPropertySetStorage
,
(
void
**
)
&
pPropSetStg
);
ok
(
hr
==
S_OK
,
"Unable to get an IPropertySetStorage, hr=0x%x
\n
"
,
hr
);
hr
=
IPropertySetStorage_Open
(
pPropSetStg
,
&
FMTID_Intshcut
,
STGM_READ
|
STGM_SHARE_EXCLUSIVE
,
&
pPropStgRead
);
...
...
@@ -270,7 +270,7 @@ static void test_ReadAndWriteProperties(void)
PropVariantClear
(
&
pvread
[
1
]);
IPropertyStorage_Release
(
pPropStgRead
);
IPropertySetStorage_Release
(
pPropSetStg
);
urlA
->
lpVtbl
->
Release
(
urlA
);
urlA
FromFile
->
lpVtbl
->
Release
(
urlAFromFile
);
DeleteFileW
(
fileNameW
);
}
else
...
...
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