Skip to content

Commit

Permalink
Revert: Count DI_BUFFEROVERFLOW as DI_OK for mice
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Jun 20, 2024
1 parent f31e8dd commit fda3e1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 68
#define BUILD_NUMBER 69
3 changes: 1 addition & 2 deletions IDirectInputDeviceX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,7 @@ HRESULT m_IDirectInputDeviceX::GetDeviceData(DWORD cbObjectData, LPDIDEVICEOBJEC

LeaveCriticalSection(&dics);

// Several games handle DI_BUFFEROVERFLOW as failure
return IsMouse && hr == DI_BUFFEROVERFLOW && rgdod && pdwInOut && *pdwInOut > 0 ? DI_OK : hr;
return hr;
}

HRESULT m_IDirectInputDeviceX::SetDataFormat(LPCDIDATAFORMAT lpdf)
Expand Down

0 comments on commit fda3e1e

Please sign in to comment.