View | Details | Raw Unified | Return to bug 157010
Collapse All | Expand All

(-)src/org/eclipse/swt/program/Program.java (+3 lines)
Lines 161-166 Link Here
161
	if (OS.RegQueryValueEx (phkResult [0], (TCHAR) null, 0, null, (TCHAR) null, lpcbData) == 0) {
161
	if (OS.RegQueryValueEx (phkResult [0], (TCHAR) null, 0, null, (TCHAR) null, lpcbData) == 0) {
162
		result = "";
162
		result = "";
163
		int length = lpcbData [0] / TCHAR.sizeof;
163
		int length = lpcbData [0] / TCHAR.sizeof;
164
		if (lpcbData [0] % TCHAR.sizeof != 0) {
165
			length++;
166
		}
164
		if (length != 0) {
167
		if (length != 0) {
165
			/* Use the character encoding for the default locale */
168
			/* Use the character encoding for the default locale */
166
			TCHAR lpData = new TCHAR (0, length);
169
			TCHAR lpData = new TCHAR (0, length);

Return to bug 157010