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))
|
||||
{
|
||||
case 0:
|
||||
case STGM_SHARE_DENY_NONE:
|
||||
dwShare = FILE_SHARE_READ|FILE_SHARE_WRITE;
|
||||
break;
|
||||
case STGM_SHARE_DENY_READ:
|
||||
|
@ -448,9 +449,6 @@ HRESULT WINAPI SHCreateStreamOnFileEx(LPCWSTR lpszPath, DWORD dwMode,
|
|||
case STGM_SHARE_EXCLUSIVE:
|
||||
dwShare = 0;
|
||||
break;
|
||||
case STGM_SHARE_DENY_NONE:
|
||||
dwShare = FILE_SHARE_READ|FILE_SHARE_WRITE;
|
||||
break;
|
||||
default:
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue