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 8d3d84f commit ef3bfd6Copy full SHA for ef3bfd6
GH Injector Library/Error.h
@@ -294,6 +294,8 @@ struct ERROR_DATA
294
#define INIT_ERROR_DATA(data, error) \
295
data.AdvErrorCode = error; \
296
data.Line = __LINE__; \
297
+memset(data.szFileName, 0, sizeof(data.szFileName)); \
298
+memset(data.szFunctionName, 0, sizeof(data.szFunctionName)); \
299
memcpy(data.szFileName, __FILENAMEW__, ((size_t)lstrlenW(__FILENAMEW__)) * 2); \
300
memcpy(data.szFunctionName, __FUNCTIONW__, ((size_t)lstrlenW(__FUNCTIONW__)) * 2);
301
0 commit comments