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
b2a8a089
Commit
b2a8a089
authored
Mar 10, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun/tests: Use a writable location for folder creation test.
parent
fac1c0d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
filesystem.c
dlls/scrrun/tests/filesystem.c
+10
-3
No files found.
dlls/scrrun/tests/filesystem.c
View file @
b2a8a089
...
...
@@ -127,19 +127,26 @@ static void test_interfaces(void)
static
void
test_createfolder
(
void
)
{
WCHAR
pathW
[
MAX_PATH
],
buffW
[
MAX_PATH
];
HRESULT
hr
;
WCHAR
pathW
[
MAX_PATH
];
BSTR
path
;
IFolder
*
folder
;
BOOL
ret
;
GetTempPathW
(
MAX_PATH
,
pathW
);
GetTempFileNameW
(
pathW
,
NULL
,
0
,
buffW
);
DeleteFileW
(
buffW
);
ret
=
CreateDirectoryW
(
buffW
,
NULL
);
ok
(
ret
,
"got %d, %d
\n
"
,
ret
,
GetLastError
());
/* create existing directory */
GetCurrentDirectoryW
(
sizeof
(
pathW
)
/
sizeof
(
WCHAR
),
pathW
);
path
=
SysAllocString
(
pathW
);
path
=
SysAllocString
(
buffW
);
folder
=
(
void
*
)
0xdeabeef
;
hr
=
IFileSystem3_CreateFolder
(
fs3
,
path
,
&
folder
);
ok
(
hr
==
CTL_E_FILEALREADYEXISTS
,
"got 0x%08x
\n
"
,
hr
);
ok
(
folder
==
NULL
,
"got %p
\n
"
,
folder
);
SysFreeString
(
path
);
RemoveDirectoryW
(
buffW
);
}
static
void
test_textstream
(
void
)
...
...
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