Skip to content

fix(interop): Correct LPRECT parameter type for AdjustWindowRectEx in User32#1566

Merged
pomianowski merged 1 commit intolepoco:mainfrom
apachezy:fix/user32-rect
Nov 9, 2025
Merged

fix(interop): Correct LPRECT parameter type for AdjustWindowRectEx in User32#1566
pomianowski merged 1 commit intolepoco:mainfrom
apachezy:fix/user32-rect

Conversation

@apachezy
Copy link
Copy Markdown
Contributor

@apachezy apachezy commented Nov 8, 2025

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

  • Description: According to the Win32 SDK, the first parameter LPRECT lpRect of AdjustWindowRectEx should use a structure of four 32-bit integers.
  • Issue: Currently System.Windows.Rect is used, which stores double-precision floating point values, causing memory layout mismatch.

Issue Number: N/A

What is the new behavior?

  • The AdjustWindowRectEx parameter now uses the library-defined WinDef.RECT struct, ensuring correct memory layout compatibility with the Win32 LPRECT parameter.

Other information

No additional information.

@pomianowski pomianowski merged commit 1f20c0e into lepoco:main Nov 9, 2025
2 checks passed
@apachezy apachezy deleted the fix/user32-rect branch November 9, 2025 09:42
@Nuklon Nuklon mentioned this pull request Nov 10, 2025
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants