Skip to content

Fix #14564 FP AssignmentIntegerToAddress (MAKEINTRESOURCE() in windows.cfg)#8295

Open
chrchr-github wants to merge 4 commits intodanmar:mainfrom
chrchr-github:chr_14564
Open

Fix #14564 FP AssignmentIntegerToAddress (MAKEINTRESOURCE() in windows.cfg)#8295
chrchr-github wants to merge 4 commits intodanmar:mainfrom
chrchr-github:chr_14564

Conversation

@chrchr-github
Copy link
Collaborator

No description provided.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 2026

<define name="MAKEINTRESOURCE(i)" value="i"/>
<define name="MAKEINTRESOURCEA(i)" value="((LPSTR)((ULONG_PTR)((WORD)(i))))"/>
<define name="MAKEINTRESOURCEW(i)" value="((LPWSTR)((ULONG_PTR)((WORD)(i))))"/>
<define name="MAKEINTRESOURCE(i)" value="((LPTSTR)((ULONG_PTR)((WORD)(i))))"/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am curious. why are there 3 casts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, but this is the original definition. Maybe to avoid warnings like -Wint-to-void-pointer-cast, since WORD is only 16 bits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants