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
fee495d5
Commit
fee495d5
authored
Nov 04, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Added a stub for IFolder interface.
parent
f43b49fb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
362 additions
and
7 deletions
+362
-7
filesystem.c
dlls/scrrun/filesystem.c
+320
-5
scrrun.c
dlls/scrrun/scrrun.c
+1
-0
scrrun_private.h
dlls/scrrun/scrrun_private.h
+11
-0
filesystem.c
dlls/scrrun/tests/filesystem.c
+30
-2
No files found.
dlls/scrrun/filesystem.c
View file @
fee495d5
This diff is collapsed.
Click to expand it.
dlls/scrrun/scrrun.c
View file @
fee495d5
...
...
@@ -104,6 +104,7 @@ static REFIID tid_ids[] = {
&
IID_NULL
,
&
IID_IDictionary
,
&
IID_IFileSystem3
,
&
IID_IFolder
};
static
HRESULT
load_typelib
(
void
)
...
...
dlls/scrrun/scrrun_private.h
View file @
fee495d5
...
...
@@ -26,9 +26,20 @@ typedef enum tid_t
NULL_tid
,
IDictionary_tid
,
IFileSystem3_tid
,
IFolder_tid
,
LAST_tid
}
tid_t
;
HRESULT
get_typeinfo
(
tid_t
tid
,
ITypeInfo
**
typeinfo
)
DECLSPEC_HIDDEN
;
static
inline
void
*
heap_alloc
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
}
static
inline
BOOL
heap_free
(
void
*
mem
)
{
return
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
}
#endif
dlls/scrrun/tests/filesystem.c
View file @
fee495d5
...
...
@@ -22,6 +22,7 @@
#include "windows.h"
#include "ole2.h"
#include "olectl.h"
#include "oleauto.h"
#include "dispex.h"
...
...
@@ -32,9 +33,9 @@
static
void
test_interfaces
(
void
)
{
static
const
WCHAR
pathW
[]
=
{
'p'
,
'a'
,
't'
,
'h'
,
0
};
static
const
WCHAR
nonexistent_dirW
[]
=
{
'c'
,
':'
,
'\\'
,
'N'
,
'o'
,
'n'
,
'e'
,
'x'
,
'i'
,
's'
,
't'
,
'e'
,
'n'
,
't'
,
0
};
static
const
WCHAR
pathW
[]
=
{
'p'
,
'a'
,
't'
,
'h'
,
0
};
static
const
WCHAR
file_kernel32W
[]
=
{
'\\'
,
'k'
,
'e'
,
'r'
,
'n'
,
'e'
,
'l'
,
'3'
,
'2'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
HRESULT
hr
;
...
...
@@ -122,12 +123,39 @@ static void test_interfaces(void)
IDispatch_Release
(
disp
);
}
static
void
test_createfolder
(
void
)
{
IFileSystem3
*
fs3
;
HRESULT
hr
;
WCHAR
pathW
[
MAX_PATH
];
BSTR
path
;
IFolder
*
folder
;
hr
=
CoCreateInstance
(
&
CLSID_FileSystemObject
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IFileSystem3
,
(
void
**
)
&
fs3
);
if
(
FAILED
(
hr
))
{
win_skip
(
"Could not create FileSystem object: %08x
\n
"
,
hr
);
return
;
}
/* create existing directory */
GetCurrentDirectoryW
(
sizeof
(
pathW
)
/
sizeof
(
WCHAR
),
pathW
);
path
=
SysAllocString
(
pathW
);
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
);
IFileSystem3_Release
(
fs3
);
}
START_TEST
(
filesystem
)
{
CoInitialize
(
NULL
);
test_interfaces
();
test_createfolder
();
CoUninitialize
();
}
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