- May
- 13,748
- 209
If I put this code in ShutdownPlugin(), v10 crashes on exit and v11 does not (and the code works as intended).
v10: I see the first string, then "TCC has encountered a problem".
v11: I see both strings and it exits without a problem.
What's up?
Code:
WCHAR szProfile[8192];
Sprintf(szProfile, L"%%@REGQUERY[HKCU\\%s\\%s]", szTopKeyName, L"AutoSave");
Printf(L"%s\r\n", szProfile);
ExpandVariables(szProfile, 1);
Printf(L"%s\r\n", szProfile);
v11: I see both strings and it exits without a problem.
What's up?