ole32: Remove a check on the share mode for the NULL filename case as the check is already done earlier in StgCreateDocfile.
This commit is contained in:
parent
6f7b1f6463
commit
1a5cd3ca9b
@ -5661,9 +5661,6 @@ HRESULT WINAPI StgCreateDocfile(
|
|||||||
WCHAR tempPath[MAX_PATH];
|
WCHAR tempPath[MAX_PATH];
|
||||||
static const WCHAR prefix[] = { 'S', 'T', 'O', 0 };
|
static const WCHAR prefix[] = { 'S', 'T', 'O', 0 };
|
||||||
|
|
||||||
if (STGM_SHARE_MODE(grfMode) != STGM_SHARE_EXCLUSIVE)
|
|
||||||
goto end;
|
|
||||||
|
|
||||||
memset(tempPath, 0, sizeof(tempPath));
|
memset(tempPath, 0, sizeof(tempPath));
|
||||||
memset(tempFileName, 0, sizeof(tempFileName));
|
memset(tempFileName, 0, sizeof(tempFileName));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user