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
ac132599
Commit
ac132599
authored
Jul 25, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Add IFileSystem3::GetTempName implementation.
parent
d09ec591
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
Makefile.in
dlls/scrrun/Makefile.in
+1
-1
filesystem.c
dlls/scrrun/filesystem.c
+17
-2
No files found.
dlls/scrrun/Makefile.in
View file @
ac132599
MODULE
=
scrrun.dll
IMPORTS
=
uuid oleaut32 version
IMPORTS
=
uuid oleaut32 version
advapi32
C_SRCS
=
\
dictionary.c
\
...
...
dlls/scrrun/filesystem.c
View file @
ac132599
...
...
@@ -26,6 +26,7 @@
#include "ole2.h"
#include "olectl.h"
#include "dispex.h"
#include "ntsecapi.h"
#include "scrrun.h"
#include "scrrun_private.h"
...
...
@@ -868,9 +869,23 @@ static HRESULT WINAPI filesys_GetAbsolutePathName(IFileSystem3 *iface, BSTR Path
static
HRESULT
WINAPI
filesys_GetTempName
(
IFileSystem3
*
iface
,
BSTR
*
pbstrResult
)
{
FIXME
(
"%p %p
\n
"
,
iface
,
pbstrResult
)
;
static
const
WCHAR
fmt
[]
=
{
'r'
,
'a'
,
'd'
,
'%'
,
'0'
,
'5'
,
'X'
,
'.'
,
't'
,
'x'
,
't'
,
0
}
;
return
E_NOTIMPL
;
DWORD
random
;
TRACE
(
"%p %p
\n
"
,
iface
,
pbstrResult
);
if
(
!
pbstrResult
)
return
E_POINTER
;
*
pbstrResult
=
SysAllocStringLen
(
NULL
,
12
);
if
(
!*
pbstrResult
)
return
E_OUTOFMEMORY
;
if
(
!
RtlGenRandom
(
&
random
,
sizeof
(
random
)))
return
E_FAIL
;
sprintfW
(
*
pbstrResult
,
fmt
,
random
&
0xfffff
);
return
S_OK
;
}
static
HRESULT
WINAPI
filesys_DriveExists
(
IFileSystem3
*
iface
,
BSTR
DriveSpec
,
...
...
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