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
2ca39611
Commit
2ca39611
authored
Jan 02, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Store folder path.
parent
c3bb460d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
filesystem.c
dlls/scrrun/filesystem.c
+14
-2
No files found.
dlls/scrrun/filesystem.c
View file @
2ca39611
...
...
@@ -39,6 +39,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(scrrun);
struct
folder
{
IFolder
IFolder_iface
;
LONG
ref
;
BSTR
path
;
};
struct
file
{
...
...
@@ -371,7 +372,10 @@ static ULONG WINAPI folder_Release(IFolder *iface)
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
SysFreeString
(
This
->
path
);
heap_free
(
This
);
}
return
ref
;
}
...
...
@@ -614,15 +618,23 @@ static const IFolderVtbl foldervtbl = {
folder_CreateTextFile
};
static
HRESULT
create_folder
(
IFolder
**
folder
)
static
HRESULT
create_folder
(
BSTR
path
,
IFolder
**
folder
)
{
struct
folder
*
This
;
*
folder
=
NULL
;
This
=
heap_alloc
(
sizeof
(
struct
folder
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IFolder_iface
.
lpVtbl
=
&
foldervtbl
;
This
->
ref
=
1
;
This
->
path
=
SysAllocString
(
path
);
if
(
!
This
->
path
)
{
heap_free
(
This
);
return
E_OUTOFMEMORY
;
}
*
folder
=
&
This
->
IFolder_iface
;
...
...
@@ -1790,7 +1802,7 @@ static HRESULT WINAPI filesys_CreateFolder(IFileSystem3 *iface, BSTR path,
return
HRESULT_FROM_WIN32
(
GetLastError
());
}
return
create_folder
(
folder
);
return
create_folder
(
path
,
folder
);
}
static
HRESULT
WINAPI
filesys_CreateTextFile
(
IFileSystem3
*
iface
,
BSTR
FileName
,
...
...
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