shlwapi: Merge two case statements.
This commit is contained in:
parent
4247e80a79
commit
b07f431878
|
@ -437,6 +437,7 @@ HRESULT WINAPI SHCreateStreamOnFileEx(LPCWSTR lpszPath, DWORD dwMode,
|
||||||
switch (STGM_SHARE_MODE(dwMode))
|
switch (STGM_SHARE_MODE(dwMode))
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
case STGM_SHARE_DENY_NONE:
|
||||||
dwShare = FILE_SHARE_READ|FILE_SHARE_WRITE;
|
dwShare = FILE_SHARE_READ|FILE_SHARE_WRITE;
|
||||||
break;
|
break;
|
||||||
case STGM_SHARE_DENY_READ:
|
case STGM_SHARE_DENY_READ:
|
||||||
|
@ -448,9 +449,6 @@ HRESULT WINAPI SHCreateStreamOnFileEx(LPCWSTR lpszPath, DWORD dwMode,
|
||||||
case STGM_SHARE_EXCLUSIVE:
|
case STGM_SHARE_EXCLUSIVE:
|
||||||
dwShare = 0;
|
dwShare = 0;
|
||||||
break;
|
break;
|
||||||
case STGM_SHARE_DENY_NONE:
|
|
||||||
dwShare = FILE_SHARE_READ|FILE_SHARE_WRITE;
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue