Commit 56241289 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

shdocvw/tests: Make sure we use a valid temporary directory.

parent bf6a20fa
...@@ -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)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment