The dmFormName array in the structure pointed to by pdm is declared like this:
WCHAR dmFormName[CCHFORMNAME];
I get a Code Smell like this:
An integral type is too small to hold a pointer value.
What the code is trying to do is to see if the first WCHAR of the array is a null terminator. I wouldn’t think that this is a rare occurrence. I could change the code to use a wcsnlen_s to compare with 0 but I want to modify the source code as little as possible. It seems what is being done here is possible.
Would you mind sharing the rule key from this issue? It should be something like c:1234. I’m asking because I want to check Jira to see if any work has been done on the rule in question since the LTS.
Hi @DaleZ ,
From what I understand of your code, dmFormName doesn’t contain pointers but chars and what you are trying to test is whether the first char is 0, not whether it is a null pointer.
So I think what you want to test is