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
56241289
Commit
56241289
authored
Dec 12, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw/tests: Make sure we use a valid temporary directory.
parent
bf6a20fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
intshcut.c
dlls/shdocvw/tests/intshcut.c
+6
-1
No files found.
dlls/shdocvw/tests/intshcut.c
View file @
56241289
...
@@ -178,7 +178,8 @@ static void test_ReadAndWriteProperties(void)
...
@@ -178,7 +178,8 @@ static void test_ReadAndWriteProperties(void)
HRESULT
hr
;
HRESULT
hr
;
IUniformResourceLocatorA
*
urlA
;
IUniformResourceLocatorA
*
urlA
;
IUniformResourceLocatorA
*
urlAFromFile
;
IUniformResourceLocatorA
*
urlAFromFile
;
WCHAR
fileNameW
[]
=
{
'C'
,
':'
,
'/'
,
'w'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'/'
,
't'
,
'e'
,
'm'
,
'p'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
's'
,
'h'
,
'o'
,
'r'
,
't'
,
'c'
,
'u'
,
't'
,
'.'
,
'u'
,
'r'
,
'l'
,
0
};
WCHAR
fileNameW
[
MAX_PATH
];
static
const
WCHAR
shortcutW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
's'
,
'h'
,
'o'
,
'r'
,
't'
,
'c'
,
'u'
,
't'
,
'.'
,
'u'
,
'r'
,
'l'
,
0
};
WCHAR
iconPath
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
':'
,
'/'
,
'/'
,
'/'
,
'C'
,
':'
,
'/'
,
'a'
,
'r'
,
'b'
,
'i'
,
't'
,
'r'
,
'a'
,
'r'
,
'y'
,
'/'
,
'i'
,
'c'
,
'o'
,
'n'
,
'/'
,
'p'
,
'a'
,
't'
,
'h'
,
0
};
WCHAR
iconPath
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
':'
,
'/'
,
'/'
,
'/'
,
'C'
,
':'
,
'/'
,
'a'
,
'r'
,
'b'
,
'i'
,
't'
,
'r'
,
'a'
,
'r'
,
'y'
,
'/'
,
'i'
,
'c'
,
'o'
,
'n'
,
'/'
,
'p'
,
'a'
,
't'
,
'h'
,
0
};
int
iconIndex
=
7
;
int
iconIndex
=
7
;
char
testurl
[]
=
"http://some/bogus/url.html"
;
char
testurl
[]
=
"http://some/bogus/url.html"
;
...
@@ -188,6 +189,10 @@ static void test_ReadAndWriteProperties(void)
...
@@ -188,6 +189,10 @@ static void test_ReadAndWriteProperties(void)
ps
[
1
].
ulKind
=
PRSPEC_PROPID
;
ps
[
1
].
ulKind
=
PRSPEC_PROPID
;
ps
[
1
].
propid
=
PID_IS_ICONINDEX
;
ps
[
1
].
propid
=
PID_IS_ICONINDEX
;
/* Make sure we have a valid temporary directory */
GetTempPathW
(
MAX_PATH
,
fileNameW
);
lstrcatW
(
fileNameW
,
shortcutW
);
hr
=
CoCreateInstance
(
&
CLSID_InternetShortcut
,
NULL
,
CLSCTX_ALL
,
&
IID_IUniformResourceLocatorA
,
(
void
**
)
&
urlA
);
hr
=
CoCreateInstance
(
&
CLSID_InternetShortcut
,
NULL
,
CLSCTX_ALL
,
&
IID_IUniformResourceLocatorA
,
(
void
**
)
&
urlA
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
{
{
...
...
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