Commit 657d13c
committed
Merged PR 5769: Replace incorrect sizeof() with strlen() in compiler version test
Replace incorrect sizeof() with strlen() in compiler version test
This would produce a failure only on x86 because it sizeof() gave the size
of a pointer, which just so happens to be the hard coded size of the hash
on x64. On x86, it would advance only 4 bytes, and fail the comparison.
This also checks to see if the VersionStringListSizeInBytes is > 2 more than the hash size, because both null-terminators are always added, so it will always be at least 2 more, even with no CustomVersionString.1 parent 7f6d946 commit 657d13c
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2110 | 2110 | | |
2111 | 2111 | | |
2112 | 2112 | | |
| 2113 | + | |
2113 | 2114 | | |
2114 | 2115 | | |
2115 | | - | |
2116 | | - | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
2117 | 2119 | | |
2118 | 2120 | | |
2119 | 2121 | | |
| |||
0 commit comments