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
282bdb35
Commit
282bdb35
authored
Mar 31, 2001
by
Gerard Patel
Committed by
Alexandre Julliard
Mar 31, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't try to create file twice in the NULL filename case for
StgCreateDocFile.
parent
f11ff2a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
storage32.c
dlls/ole32/storage32.c
+11
-1
No files found.
dlls/ole32/storage32.c
View file @
282bdb35
...
@@ -5294,6 +5294,11 @@ HRESULT WINAPI StgCreateDocfile(
...
@@ -5294,6 +5294,11 @@ HRESULT WINAPI StgCreateDocfile(
WCHAR
tempPath
[
MAX_PATH
];
WCHAR
tempPath
[
MAX_PATH
];
WCHAR
prefix
[]
=
{
'S'
,
'T'
,
'O'
,
0
};
WCHAR
prefix
[]
=
{
'S'
,
'T'
,
'O'
,
0
};
if
(
!
(
grfMode
&
STGM_SHARE_EXCLUSIVE
))
return
STG_E_INVALIDFLAG
;
if
(
!
(
grfMode
&
(
STGM_WRITE
|
STGM_READWRITE
)))
return
STG_E_INVALIDFLAG
;
memset
(
tempPath
,
0
,
sizeof
(
tempPath
));
memset
(
tempPath
,
0
,
sizeof
(
tempPath
));
memset
(
tempFileName
,
0
,
sizeof
(
tempFileName
));
memset
(
tempFileName
,
0
,
sizeof
(
tempFileName
));
...
@@ -5304,6 +5309,12 @@ HRESULT WINAPI StgCreateDocfile(
...
@@ -5304,6 +5309,12 @@ HRESULT WINAPI StgCreateDocfile(
pwcsName
=
tempFileName
;
pwcsName
=
tempFileName
;
else
else
return
STG_E_INSUFFICIENTMEMORY
;
return
STG_E_INSUFFICIENTMEMORY
;
creationMode
=
TRUNCATE_EXISTING
;
}
else
{
creationMode
=
GetCreationModeFromSTGM
(
grfMode
);
}
}
/*
/*
...
@@ -5311,7 +5322,6 @@ HRESULT WINAPI StgCreateDocfile(
...
@@ -5311,7 +5322,6 @@ HRESULT WINAPI StgCreateDocfile(
*/
*/
shareMode
=
GetShareModeFromSTGM
(
grfMode
);
shareMode
=
GetShareModeFromSTGM
(
grfMode
);
accessMode
=
GetAccessModeFromSTGM
(
grfMode
);
accessMode
=
GetAccessModeFromSTGM
(
grfMode
);
creationMode
=
GetCreationModeFromSTGM
(
grfMode
);
if
(
grfMode
&
STGM_DELETEONRELEASE
)
if
(
grfMode
&
STGM_DELETEONRELEASE
)
fileAttributes
=
FILE_FLAG_RANDOM_ACCESS
|
FILE_FLAG_DELETE_ON_CLOSE
;
fileAttributes
=
FILE_FLAG_RANDOM_ACCESS
|
FILE_FLAG_DELETE_ON_CLOSE
;
...
...
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