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
9cc5c157
Commit
9cc5c157
authored
Dec 06, 2004
by
Stefan Leichter
Committed by
Alexandre Julliard
Dec 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missing imports of the test program on NT4.
parent
acf2dd57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
shlfileop.c
dlls/shell32/tests/shlfileop.c
+21
-2
No files found.
dlls/shell32/tests/shlfileop.c
View file @
9cc5c157
...
...
@@ -32,6 +32,17 @@
CHAR
CURR_DIR
[
MAX_PATH
];
static
HMODULE
hshell32
;
static
int
(
WINAPI
*
pSHCreateDirectoryExA
)(
HWND
,
LPCSTR
,
LPSECURITY_ATTRIBUTES
);
static
void
InitFunctionPointers
(
void
)
{
hshell32
=
GetModuleHandleA
(
"shell32.dll"
);
if
(
hshell32
)
pSHCreateDirectoryExA
=
(
void
*
)
GetProcAddress
(
hshell32
,
"SHCreateDirectoryExA"
);
}
/* creates a file with the specified name for tests */
void
createTestFile
(
CHAR
*
name
)
{
...
...
@@ -397,18 +408,26 @@ void test_sh_create_dir()
CHAR
path
[
MAX_PATH
];
int
ret
;
if
(
!
pSHCreateDirectoryExA
)
{
trace
(
"skipping SHCreateDirectoryExA tests
\n
"
);
return
;
}
set_curr_dir_path
(
path
,
"testdir2
\\
test4.txt
\0
"
);
ret
=
SHCreateDirectoryExA
(
NULL
,
path
,
NULL
);
ret
=
p
SHCreateDirectoryExA
(
NULL
,
path
,
NULL
);
ok
(
ERROR_SUCCESS
==
ret
,
"SHCreateDirectoryEx failed to create directory recursively, ret = %d
\n
"
,
ret
);
ok
(
file_exists
(
".
\\
testdir2"
),
"The first directory is not created
\n
"
);
ok
(
file_exists
(
".
\\
testdir2
\\
test4.txt"
),
"The second directory is not created
\n
"
);
ret
=
SHCreateDirectoryExA
(
NULL
,
path
,
NULL
);
ret
=
p
SHCreateDirectoryExA
(
NULL
,
path
,
NULL
);
ok
(
ERROR_ALREADY_EXISTS
==
ret
,
"SHCreateDirectoryEx should fail to create existing directory, ret = %d
\n
"
,
ret
);
}
START_TEST
(
shlfileop
)
{
InitFunctionPointers
();
clean_after_shfo_tests
();
init_shfo_tests
();
...
...
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