8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9dcc0e commit 5ce3707Copy full SHA for 5ce3707
MemoryModule.c
@@ -835,7 +835,7 @@ static PIMAGE_RESOURCE_DIRECTORY_ENTRY _MemorySearchResourceEntry(
835
#else
836
// Resource names are always stored using 16bit characters, need to
837
// convert string we search for.
838
- static const size_t MAX_LOCAL_KEY_LENGTH = 2048;
+#define MAX_LOCAL_KEY_LENGTH 2048
839
// In most cases resource names are short, so optimize for that by
840
// using a pre-allocated array.
841
wchar_t _searchKeySpace[MAX_LOCAL_KEY_LENGTH+1];
@@ -884,6 +884,7 @@ static PIMAGE_RESOURCE_DIRECTORY_ENTRY _MemorySearchResourceEntry(
884
if (searchKeyLen > MAX_LOCAL_KEY_LENGTH) {
885
free(_searchKey);
886
}
887
+#undef MAX_LOCAL_KEY_LENGTH
888
#endif
889
890
0 commit comments