-
Bug
-
Resolution: Fixed
-
P2
-
8
-
b26
-
x86
-
windows
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2221281 | 7u4 | Thomas Ng | P2 | Closed | Fixed | b12 |
src/plugin/win32/toolkit/common/JavaFX.cpp
Usage of RegSetValueEx is wrong now - especially now that we are unicode.
bRet = (RegSetValueEx(key, JFX_DISABLED_KEY, 0, REG_SZ,
(LPBYTE)disableString, _tcslen(disableString)) == ERROR_SUCCESS);
the last param is the number of bytes that needs to be written out. it needs to take into account of sizeof(TCHAR).
Usage of RegSetValueEx is wrong now - especially now that we are unicode.
bRet = (RegSetValueEx(key, JFX_DISABLED_KEY, 0, REG_SZ,
(LPBYTE)disableString, _tcslen(disableString)) == ERROR_SUCCESS);
the last param is the number of bytes that needs to be written out. it needs to take into account of sizeof(TCHAR).
- backported by
-
JDK-2221281 wrong buffer size passed to RegSetValueEx
-
- Closed
-