mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
Removed excessive statement (break after return or goto, not useful
break, not needed vars...)
This commit is contained in:
parent
386cf457c9
commit
cf1d00bb08
@ -1840,7 +1840,6 @@ COMBOEX_EditWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
return CallWindowProcW (infoPtr->prevEditWndProc,
|
||||
hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@ -2243,7 +2242,6 @@ COMBOEX_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
ERR("unknown msg %04x wp=%08x lp=%08lx\n",uMsg,wParam,lParam);
|
||||
return DefWindowProcW (hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1085,7 +1085,6 @@ DATETIME_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
uMsg, wParam, lParam);
|
||||
return DefWindowProcW (hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -261,7 +261,6 @@ FlatSB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
uMsg, wParam, lParam);
|
||||
return DefWindowProcA (hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1831,7 +1831,6 @@ HEADER_WindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
msg, wParam, lParam );
|
||||
return DefWindowProcA (hwnd, msg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -9293,7 +9293,6 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
return DefWindowProcW(hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/***
|
||||
|
@ -2016,7 +2016,6 @@ MONTHCAL_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
ERR( "unknown msg %04x wp=%08x lp=%08lx\n", uMsg, wParam, lParam);
|
||||
return DefWindowProcA(hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -106,7 +106,6 @@ NATIVEFONT_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
uMsg, wParam, lParam);
|
||||
return DefWindowProcW (hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1368,8 +1368,6 @@ PAGER_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
default:
|
||||
return DefWindowProcW (hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -3690,6 +3690,4 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -4696,7 +4696,6 @@ REBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
uMsg, wParam, lParam);
|
||||
return DefWindowProcA (hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -72,7 +72,6 @@ BOOL WINAPI SmoothScrollWindow( SMOOTHSCROLLSTRUCT *smooth ) {
|
||||
LPRECT lpupdaterect = smooth->lpupdaterect;
|
||||
HRGN hrgnupdate = smooth->hrgnupdate;
|
||||
RECT tmprect;
|
||||
BOOL ret = TRUE;
|
||||
DWORD flags = smooth->flags;
|
||||
|
||||
if (smooth->dwSize!=sizeof(SMOOTHSCROLLSTRUCT))
|
||||
@ -129,5 +128,4 @@ BOOL WINAPI SmoothScrollWindow( SMOOTHSCROLLSTRUCT *smooth ) {
|
||||
smooth->lpcliprect,hrgnupdate,lpupdaterect,
|
||||
flags & 0xffff
|
||||
);
|
||||
return ret;
|
||||
}
|
||||
|
@ -1250,7 +1250,6 @@ StatusWindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
msg, wParam, lParam);
|
||||
return DefWindowProcW (hwnd, msg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -3270,8 +3270,6 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
uMsg, wParam, lParam);
|
||||
return DefWindowProcW(hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -7097,7 +7097,6 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
uMsg, wParam, lParam);
|
||||
return DefWindowProcW (hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1400,8 +1400,6 @@ TOOLTIPS_GetCurrentToolA (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||
}
|
||||
else
|
||||
return (infoPtr->nCurrentTool != -1);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
@ -1438,8 +1436,6 @@ TOOLTIPS_GetCurrentToolW (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||
}
|
||||
else
|
||||
return (infoPtr->nCurrentTool != -1);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
@ -2802,7 +2798,6 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
uMsg, wParam, lParam);
|
||||
return DefWindowProcW (hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1810,7 +1810,6 @@ TRACKBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
ERR("unknown msg %04x wp=%08x lp=%08lx\n", uMsg, wParam, lParam);
|
||||
return DefWindowProcW (hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -5497,7 +5497,6 @@ TREEVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
def:
|
||||
return DefWindowProcA(hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1057,11 +1057,10 @@ LRESULT CC_WMCommand( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD notifyCode,
|
||||
*/
|
||||
LRESULT CC_WMPaint( HWND hDlg, WPARAM wParam, LPARAM lParam )
|
||||
{
|
||||
HDC hdc;
|
||||
PAINTSTRUCT ps;
|
||||
LCCPRIV lpp = (LCCPRIV)GetWindowLongA(hDlg, DWL_USER);
|
||||
|
||||
hdc = BeginPaint(hDlg, &ps);
|
||||
BeginPaint(hDlg, &ps);
|
||||
/* we have to paint dialog children except text and buttons */
|
||||
CC_PaintPredefColorArray(hDlg, 6, 8);
|
||||
CC_PaintUserColorArray(hDlg, 2, 8, lpp->lpcc->lpCustColors);
|
||||
@ -1072,7 +1071,7 @@ LRESULT CC_WMPaint( HWND hDlg, WPARAM wParam, LPARAM lParam )
|
||||
CC_PaintColorGraph(hDlg);
|
||||
EndPaint(hDlg, &ps);
|
||||
|
||||
return TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
@ -224,11 +224,9 @@ HRESULT WINAPI IDirect3DCubeTexture8Impl_GetLevelDesc(LPDIRECT3DCUBETEXT
|
||||
if (Level < This->levels) {
|
||||
TRACE("(%p) level (%d)\n", This, Level);
|
||||
return IDirect3DSurface8Impl_GetDesc((LPDIRECT3DSURFACE8) This->surfaces[0][Level], pDesc);
|
||||
} else {
|
||||
FIXME("(%p) level(%d) overflow Levels(%d)\n", This, Level, This->levels);
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
return D3D_OK;
|
||||
FIXME("(%p) level(%d) overflow Levels(%d)\n", This, Level, This->levels);
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
HRESULT WINAPI IDirect3DCubeTexture8Impl_GetCubeMapSurface(LPDIRECT3DCUBETEXTURE8 iface, D3DCUBEMAP_FACES FaceType, UINT Level, IDirect3DSurface8** ppCubeMapSurface) {
|
||||
IDirect3DCubeTexture8Impl *This = (IDirect3DCubeTexture8Impl *)iface;
|
||||
|
@ -182,11 +182,9 @@ HRESULT WINAPI IDirect3DTexture8Impl_GetLevelDesc(LPDIRECT3DTEXTURE8 ifa
|
||||
if (Level < This->levels) {
|
||||
TRACE("(%p) Level (%d)\n", This, Level);
|
||||
return IDirect3DSurface8Impl_GetDesc((LPDIRECT3DSURFACE8) This->surfaces[Level], pDesc);
|
||||
} else {
|
||||
FIXME("Levels seems too high?!!\n");
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
return D3D_OK;
|
||||
FIXME("Levels seems too high?!!\n");
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
HRESULT WINAPI IDirect3DTexture8Impl_GetSurfaceLevel(LPDIRECT3DTEXTURE8 iface, UINT Level, IDirect3DSurface8** ppSurfaceLevel) {
|
||||
IDirect3DTexture8Impl *This = (IDirect3DTexture8Impl *)iface;
|
||||
|
@ -286,7 +286,6 @@ const char* debug_d3dtexturestate(DWORD state) {
|
||||
case 12:
|
||||
/* Note D3DTSS are not consecutive, so skip these */
|
||||
return "unused";
|
||||
break;
|
||||
default:
|
||||
FIXME("Unrecognized %lu texture state!\n", state);
|
||||
return "unrecognized";
|
||||
@ -1336,7 +1335,6 @@ void set_tex_op(LPDIRECT3DDEVICE8 iface, BOOL isAlpha, int Stage, D3DTEXTUREOP o
|
||||
*/
|
||||
LEAVE_GL();
|
||||
return;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -150,10 +150,10 @@ HRESULT WINAPI IDirect3DCubeTexture9Impl_GetLevelDesc(LPDIRECT3DCUBETEXTURE9 ifa
|
||||
if (Level < This->levels) {
|
||||
TRACE("(%p) level (%d)\n", This, Level);
|
||||
return IDirect3DSurface9Impl_GetDesc((LPDIRECT3DSURFACE9) This->surfaces[0][Level], pDesc);
|
||||
} else {
|
||||
FIXME("(%p) level(%d) overflow Levels(%d)\n", This, Level, This->levels);
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
FIXME("(%p) level(%d) overflow Levels(%d)\n", This, Level, This->levels);
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
return D3D_OK;
|
||||
}
|
||||
|
||||
|
@ -149,11 +149,9 @@ HRESULT WINAPI IDirect3DTexture9Impl_GetLevelDesc(LPDIRECT3DTEXTURE9 iface, UINT
|
||||
if (Level < This->levels) {
|
||||
TRACE("(%p) Level (%d)\n", This, Level);
|
||||
return IDirect3DSurface9Impl_GetDesc((LPDIRECT3DSURFACE9) This->surfaces[Level], pDesc);
|
||||
} else {
|
||||
FIXME("(%p) level(%d) overflow Levels(%d)\n", This, Level, This->levels);
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
return D3D_OK;
|
||||
FIXME("(%p) level(%d) overflow Levels(%d)\n", This, Level, This->levels);
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
|
||||
HRESULT WINAPI IDirect3DTexture9Impl_GetSurfaceLevel(LPDIRECT3DTEXTURE9 iface, UINT Level, IDirect3DSurface9** ppSurfaceLevel) {
|
||||
|
@ -148,11 +148,9 @@ HRESULT WINAPI IDirect3DVolumeTexture9Impl_GetLevelDesc(LPDIRECT3DVOLUMETEXTURE9
|
||||
if (Level < This->levels) {
|
||||
TRACE("(%p) Level (%d)\n", This, Level);
|
||||
return IDirect3DVolume9Impl_GetDesc((LPDIRECT3DVOLUME9) This->volumes[Level], pDesc);
|
||||
} else {
|
||||
FIXME("(%p) level(%d) overflow Levels(%d)\n", This, Level, This->levels);
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
return D3D_OK;
|
||||
FIXME("(%p) level(%d) overflow Levels(%d)\n", This, Level, This->levels);
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
|
||||
HRESULT WINAPI IDirect3DVolumeTexture9Impl_GetVolumeLevel(LPDIRECT3DVOLUMETEXTURE9 iface, UINT Level, IDirect3DVolume9** ppVolumeLevel) {
|
||||
|
@ -590,7 +590,6 @@ BOOL symt_get_info(const struct symt* type, IMAGEHLP_SYMBOL_TYPE_INFO req,
|
||||
break;
|
||||
case SymTagTypedef:
|
||||
return symt_get_info(((const struct symt_typedef*)type)->type, TI_GET_LENGTH, pInfo);
|
||||
break;
|
||||
case SymTagThunk:
|
||||
X(DWORD) = ((const struct symt_thunk*)type)->size;
|
||||
break;
|
||||
|
@ -668,7 +668,6 @@ HRESULT upload_surface_to_tex_memory_init(IDirectDrawSurfaceImpl *surf_ptr, GLui
|
||||
default:
|
||||
FIXME("FourCC Not supported\n");
|
||||
return DD_OK;
|
||||
break;
|
||||
}
|
||||
|
||||
if (GL_extensions.s3tc_compressed_texture) {
|
||||
@ -971,7 +970,6 @@ HRESULT upload_surface_to_tex_memory(RECT *rect, DWORD xoffset, DWORD yoffset, v
|
||||
default:
|
||||
FIXME("Not supported\n");
|
||||
return DD_OK;
|
||||
break;
|
||||
}
|
||||
|
||||
if (GL_extensions.s3tc_compressed_texture) {
|
||||
|
@ -301,7 +301,6 @@ HRESULT WINAPI IDirectMusicBandImpl_IDirectMusicObject_ParseDescriptor (LPDIRECT
|
||||
}
|
||||
TRACE_(dmfile)(": StreamCount[0] = %ld < StreamSize[0] = %ld\n", StreamCount, StreamSize);
|
||||
} while (StreamCount < StreamSize);
|
||||
break;
|
||||
} else {
|
||||
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
||||
liMove.QuadPart = StreamSize;
|
||||
|
@ -292,7 +292,6 @@ HRESULT WINAPI IDirectMusicChordMapImpl_IDirectMusicObject_ParseDescriptor (LPDI
|
||||
}
|
||||
TRACE_(dmfile)(": StreamCount[0] = %ld < StreamSize[0] = %ld\n", StreamCount, StreamSize);
|
||||
} while (StreamCount < StreamSize);
|
||||
break;
|
||||
} else {
|
||||
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
||||
liMove.QuadPart = StreamSize;
|
||||
|
@ -402,7 +402,6 @@ HRESULT WINAPI IDirectMusicAudioPathImpl_IDirectMusicObject_ParseDescriptor (LPD
|
||||
}
|
||||
TRACE_(dmfile)(": StreamCount[0] = %ld < StreamSize[0] = %ld\n", StreamCount, StreamSize);
|
||||
} while (StreamCount < StreamSize);
|
||||
break;
|
||||
} else {
|
||||
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
||||
liMove.QuadPart = StreamSize;
|
||||
|
@ -368,7 +368,6 @@ HRESULT WINAPI IDirectMusicGraphImpl_IDirectMusicObject_ParseDescriptor (LPDIREC
|
||||
}
|
||||
TRACE_(dmfile)(": StreamCount[0] = %ld < StreamSize[0] = %ld\n", StreamCount, StreamSize);
|
||||
} while (StreamCount < StreamSize);
|
||||
break;
|
||||
} else {
|
||||
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
||||
liMove.QuadPart = StreamSize;
|
||||
|
@ -120,7 +120,6 @@ outrefresh:
|
||||
case WM_QUIT:
|
||||
case PROCESSMSG_EXIT:
|
||||
goto outofthread;
|
||||
break;
|
||||
case PROCESSMSG_START:
|
||||
break;
|
||||
case PROCESSMSG_ADD:
|
||||
@ -837,7 +836,6 @@ HRESULT WINAPI IDirectMusicPerformance8Impl_CreateStandardAudioPath (LPDIRECTMUS
|
||||
HeapFree(GetProcessHeap(), 0, default_path);
|
||||
*ppNewPath = NULL;
|
||||
return E_INVALIDARG;
|
||||
break;
|
||||
}
|
||||
|
||||
/* FIXME: Should we create one secondary buffer for each PChannel? */
|
||||
|
@ -375,7 +375,6 @@ HRESULT WINAPI IDirectMusicContainerImpl_IDirectMusicObject_ParseDescriptor (LPD
|
||||
}
|
||||
TRACE_(dmfile)(": StreamCount[0] = 0x%08lX < StreamSize[0] = 0x%08lX\n", StreamCount, StreamSize);
|
||||
} while (StreamCount < StreamSize);
|
||||
break;
|
||||
} else {
|
||||
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
||||
liMove.QuadPart = StreamSize;
|
||||
|
@ -365,7 +365,6 @@ HRESULT WINAPI IDirectMusicScriptImpl_IDirectMusicObject_ParseDescriptor (LPDIRE
|
||||
}
|
||||
TRACE_(dmfile)(": StreamCount[0] = %ld < StreamSize[0] = %ld\n", StreamCount, StreamSize);
|
||||
} while (StreamCount < StreamSize);
|
||||
break;
|
||||
} else {
|
||||
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
||||
liMove.QuadPart = StreamSize;
|
||||
|
@ -369,7 +369,6 @@ HRESULT WINAPI IDirectMusicStyle8Impl_IDirectMusicObject_ParseDescriptor (LPDIRE
|
||||
}
|
||||
TRACE_(dmfile)(": StreamCount[0] = %ld < StreamSize[0] = %ld\n", StreamCount, StreamSize);
|
||||
} while (StreamCount < StreamSize);
|
||||
break;
|
||||
} else {
|
||||
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
||||
liMove.QuadPart = StreamSize;
|
||||
|
@ -349,7 +349,6 @@ HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_ParseDescriptor (LP
|
||||
}
|
||||
TRACE_(dmfile)(": StreamCount[0] = %ld < StreamSize[0] = %ld\n", StreamCount, StreamSize);
|
||||
} while (StreamCount < StreamSize);
|
||||
break;
|
||||
} else {
|
||||
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
||||
liMove.QuadPart = StreamSize;
|
||||
|
@ -1716,8 +1716,6 @@ DirectSoundFullDuplexCreate(
|
||||
WARN("IDirectSoundFullDuplexImpl_Initialize failed\n");
|
||||
return hres;
|
||||
}
|
||||
|
||||
return DSERR_GENERIC;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI
|
||||
|
@ -615,7 +615,6 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
|
||||
WARN("waveInMessage failed\n");
|
||||
return E_PROP_ID_UNSUPPORTED;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -771,7 +770,6 @@ static HRESULT WINAPI DSPROPERTY_DescriptionW(
|
||||
WARN("waveInMessage failed\n");
|
||||
return E_PROP_ID_UNSUPPORTED;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -484,7 +484,6 @@ HRESULT WINAPI IDirectMusicWaveImpl_IDirectMusicObject_ParseDescriptor (LPDIRECT
|
||||
}
|
||||
TRACE_(dmfile)(": StreamCount[0] = %ld < StreamSize[0] = %ld\n", StreamCount, StreamSize);
|
||||
} while (StreamCount < StreamSize);
|
||||
break;
|
||||
} else {
|
||||
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
||||
liMove.QuadPart = StreamSize;
|
||||
@ -667,7 +666,6 @@ HRESULT WINAPI IDirectMusicWaveImpl_IPersistStream_Load (LPPERSISTSTREAM iface,
|
||||
}
|
||||
TRACE_(dmfile)(": StreamCount[0] = %ld < StreamSize[0] = %ld\n", StreamCount, StreamSize);
|
||||
} while (StreamCount < StreamSize);
|
||||
break;
|
||||
} else {
|
||||
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
||||
liMove.QuadPart = StreamSize;
|
||||
|
@ -268,7 +268,6 @@ ULONG WINAPI UlPropSize(LPSPropValue lpProp)
|
||||
break;
|
||||
case PT_BINARY: ulRet = lpProp->Value.bin.cb;
|
||||
break;
|
||||
break;
|
||||
case PT_OBJECT:
|
||||
default: ulRet = 0u;
|
||||
break;
|
||||
|
@ -740,7 +740,6 @@ static void test_ScCountProps(void)
|
||||
pv.Value.MVft.lpft = (FILETIME*)iid;
|
||||
exp = 3 * sizeof(CY) + sizeof(pv);
|
||||
break;
|
||||
break;
|
||||
case PT_MV_STRING8:
|
||||
pv.Value.MVszA.cValues = 3;
|
||||
pv.Value.MVszA.lppszA = buffa;
|
||||
|
@ -934,5 +934,4 @@ LRESULT CALLBACK ADPCM_DriverProc(DWORD dwDevID, HDRVR hDriv, UINT wMsg,
|
||||
default:
|
||||
return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -777,5 +777,4 @@ LRESULT CALLBACK ADPCM_DriverProc(DWORD dwDevID, HDRVR hDriv, UINT wMsg,
|
||||
default:
|
||||
return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -1161,5 +1161,4 @@ LRESULT CALLBACK G711_DriverProc(DWORD dwDevID, HDRVR hDriv, UINT wMsg,
|
||||
default:
|
||||
return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -794,8 +794,8 @@ static LRESULT PCM_FormatDetails(PACMFORMATDETAILSW afd, DWORD dwQuery)
|
||||
switch (dwQuery) {
|
||||
case ACM_FORMATDETAILSF_FORMAT:
|
||||
if (PCM_GetFormatIndex(afd->pwfx) == 0xFFFFFFFF) {
|
||||
return ACMERR_NOTPOSSIBLE;
|
||||
WARN("not possible\n");
|
||||
return ACMERR_NOTPOSSIBLE;
|
||||
}
|
||||
break;
|
||||
case ACM_FORMATDETAILSF_INDEX:
|
||||
@ -1084,5 +1084,4 @@ LRESULT CALLBACK PCM_DriverProc(DWORD dwDevID, HDRVR hDriv, UINT wMsg,
|
||||
default:
|
||||
return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -606,5 +606,4 @@ LRESULT CALLBACK MPEG3_DriverProc(DWORD dwDevID, HDRVR hDriv, UINT wMsg,
|
||||
default:
|
||||
return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -1849,7 +1849,6 @@ LRESULT CALLBACK MSRLE32_DriverProc(DWORD dwDrvID, HDRVR hDrv, UINT uMsg,
|
||||
break;
|
||||
case ICM_SETQUALITY:
|
||||
return SetQuality(pi, *(LPLONG)lParam1);
|
||||
break;
|
||||
case ICM_COMPRESS_GET_FORMAT:
|
||||
return CompressGetFormat(pi, (LPCBITMAPINFOHEADER)lParam1,
|
||||
(LPBITMAPINFOHEADER)lParam2);
|
||||
|
@ -156,8 +156,6 @@ HRESULT WINAPI FTMarshalImpl_GetMarshalSizeMax (LPMARSHAL iface, REFIID riid, vo
|
||||
hres = IMarshal_GetMarshalSizeMax (pMarshal, riid, pv, dwDestContext, pvDestContext, mshlflags, pSize);
|
||||
IMarshal_Release (pMarshal);
|
||||
return hres;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT WINAPI FTMarshalImpl_MarshalInterface (LPMARSHAL iface, IStream * pStm, REFIID riid, void *pv,
|
||||
|
@ -1172,7 +1172,6 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
|
||||
FIXME("Trying to load GIF, but no support for libgif/libungif compiled in.\n");
|
||||
return E_FAIL;
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
case 0xd8ff: { /* JPEG */
|
||||
#ifdef HAVE_JPEGLIB_H
|
||||
|
@ -1156,7 +1156,6 @@ _get_funcdesc(
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
static DWORD
|
||||
|
@ -1310,12 +1310,10 @@ static HRESULT VARIANT_FormatNumber(LPVARIANT pVarIn, LPOLESTR lpszFormat,
|
||||
case FMT_NUM_YES_NO:
|
||||
boolFlag = VAR_BOOLYESNO;
|
||||
goto VARIANT_FormatNumber_Bool;
|
||||
break;
|
||||
|
||||
case FMT_NUM_ON_OFF:
|
||||
boolFlag = VAR_BOOLONOFF;
|
||||
goto VARIANT_FormatNumber_Bool;
|
||||
break;
|
||||
|
||||
case FMT_NUM_TRUE_FALSE:
|
||||
boolFlag = VAR_LOCALBOOL;
|
||||
@ -1452,7 +1450,6 @@ VARIANT_FormatNumber_Bool:
|
||||
ERR("Unknown token 0x%02x!\n", *pToken);
|
||||
hRes = E_INVALIDARG;
|
||||
goto VARIANT_FormatNumber_Exit;
|
||||
break;
|
||||
}
|
||||
if (localeValue)
|
||||
{
|
||||
@ -1762,7 +1759,6 @@ static HRESULT VARIANT_FormatDate(LPVARIANT pVarIn, LPOLESTR lpszFormat,
|
||||
ERR("Unknown token 0x%02x!\n", *pToken);
|
||||
hRes = E_INVALIDARG;
|
||||
goto VARIANT_FormatDate_Exit;
|
||||
break;
|
||||
}
|
||||
if (localeValue)
|
||||
{
|
||||
@ -1916,7 +1912,6 @@ static HRESULT VARIANT_FormatString(LPVARIANT pVarIn, LPOLESTR lpszFormat,
|
||||
ERR("Unknown token 0x%02x!\n", *pToken);
|
||||
hRes = E_INVALIDARG;
|
||||
goto VARIANT_FormatString_Exit;
|
||||
break;
|
||||
}
|
||||
pToken++;
|
||||
}
|
||||
|
@ -764,24 +764,24 @@ static inline size_t VARIANT_DataSize(const VARIANT* pv)
|
||||
switch (V_TYPE(pv))
|
||||
{
|
||||
case VT_I1:
|
||||
case VT_UI1: return sizeof(BYTE); break;
|
||||
case VT_UI1: return sizeof(BYTE);
|
||||
case VT_I2:
|
||||
case VT_UI2: return sizeof(SHORT); break;
|
||||
case VT_UI2: return sizeof(SHORT);
|
||||
case VT_INT:
|
||||
case VT_UINT:
|
||||
case VT_I4:
|
||||
case VT_UI4: return sizeof(LONG); break;
|
||||
case VT_UI4: return sizeof(LONG);
|
||||
case VT_I8:
|
||||
case VT_UI8: return sizeof(LONGLONG); break;
|
||||
case VT_R4: return sizeof(float); break;
|
||||
case VT_R8: return sizeof(double); break;
|
||||
case VT_DATE: return sizeof(DATE); break;
|
||||
case VT_BOOL: return sizeof(VARIANT_BOOL); break;
|
||||
case VT_UI8: return sizeof(LONGLONG);
|
||||
case VT_R4: return sizeof(float);
|
||||
case VT_R8: return sizeof(double);
|
||||
case VT_DATE: return sizeof(DATE);
|
||||
case VT_BOOL: return sizeof(VARIANT_BOOL);
|
||||
case VT_DISPATCH:
|
||||
case VT_UNKNOWN:
|
||||
case VT_BSTR: return sizeof(void*); break;
|
||||
case VT_CY: return sizeof(CY); break;
|
||||
case VT_ERROR: return sizeof(SCODE); break;
|
||||
case VT_BSTR: return sizeof(void*);
|
||||
case VT_CY: return sizeof(CY);
|
||||
case VT_ERROR: return sizeof(SCODE);
|
||||
}
|
||||
TRACE("Shouldn't be called for vt %s%s!\n", debugstr_VT(pv), debugstr_VF(pv));
|
||||
return 0;
|
||||
|
@ -149,7 +149,6 @@ outrefresh:
|
||||
case WM_QUIT:
|
||||
case ADVISE_EXIT:
|
||||
goto outofthread;
|
||||
break;
|
||||
case ADVISE_ADD_SINGLESHOT:
|
||||
case ADVISE_ADD_PERIODIC:
|
||||
/** set timeout to 0 to do a rescan now */
|
||||
|
@ -2358,7 +2358,6 @@ BOOL WINAPI RSAENH_CPGetProvParam(HCRYPTPROV hProv, DWORD dwParam, BYTE *pbData,
|
||||
SetLastError(NTE_BAD_TYPE);
|
||||
return FALSE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
@ -414,7 +414,6 @@ static BOOL SHDOCVW_TryLoadMozillaControl()
|
||||
SHDOCVW_TryDownloadMozillaControl();
|
||||
bTried = TRUE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
@ -1380,7 +1380,6 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
break;
|
||||
|
||||
case LVN_ENDLABELEDITA:
|
||||
{
|
||||
@ -1411,7 +1410,6 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
break;
|
||||
|
||||
case LVN_KEYDOWN:
|
||||
{
|
||||
|
@ -2565,7 +2565,6 @@ INT WINAPI SHUnicodeToAnsiCP(UINT CodePage, LPCWSTR lpSrcStr, LPSTR lpDstStr,
|
||||
lpDstStr[*lpiLen] = '\0';
|
||||
return *lpiLen;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -424,7 +424,6 @@ adapter name */
|
||||
break;
|
||||
case SC_EXEC_SCSI_CMD:
|
||||
return ASPI_ExecScsiCmd((DWORD)ptrSRB, mode);
|
||||
break;
|
||||
case SC_RESET_DEV:
|
||||
FIXME("Not implemented SC_RESET_DEV\n");
|
||||
break;
|
||||
|
@ -146,7 +146,6 @@ static BOOL PSDRV_WriteImageHeader(PSDRV_PDEVICE *physDev, const BITMAPINFO *inf
|
||||
default:
|
||||
FIXME("Not implemented yet\n");
|
||||
return FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
PSDRV_WriteImage(physDev, info->bmiHeader.biBitCount, xDst, yDst,
|
||||
|
@ -278,11 +278,9 @@ INT_PTR CALLBACK PSDRV_PaperDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
|
||||
memcpy(di->pi->Devmode, di->dlgdm, sizeof(PSDRV_DEVMODEA));
|
||||
SetWindowLongA(hwnd, DWL_MSGRESULT, PSNRET_NOERROR);
|
||||
return TRUE;
|
||||
break;
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -298,7 +298,6 @@ INT PSDRV_ExtEscape( PSDRV_PDEVICE *physDev, INT nEscape, INT cbInput, LPCVOID i
|
||||
FIXME("Unknown CLIP_TO_PATH mode %d\n", mode);
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
default:
|
||||
FIXME("Unimplemented code 0x%x\n", nEscape);
|
||||
|
@ -780,10 +780,8 @@ UINT X11DRV_WTInfoA(UINT wCategory, UINT nIndex, LPVOID lpOutput)
|
||||
if (gNumCursors>0)
|
||||
{
|
||||
FIXME("Return proper size\n");
|
||||
return 200;
|
||||
rc = 200;
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
break;
|
||||
case WTI_INTERFACE:
|
||||
switch (nIndex)
|
||||
|
@ -1743,7 +1743,6 @@ static LPCSTR XFONT_UnAlias(char* font)
|
||||
TRACE("found alias '%s'->%s'\n", font, fa->faTypeFace );
|
||||
strcpy(font, fa->faTypeFace);
|
||||
return fa->faAlias;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user