diff --git a/changelog.html b/changelog.html
index fc119ef3810cee600a174a0fc00542206a450397..a973f22718072ca517574cb22402ef0ec4d81d07 100644
--- a/changelog.html
+++ b/changelog.html
@@ -75,6 +75,9 @@ Upcoming changes
Allow build queue and executor status panes to be collapsed.
(issue 5622)
+
+ Jenkins 1.540 just doesn't boot on Windows at all.
+ (issue 26030)
diff --git a/core/src/main/java/hudson/util/jna/Kernel32Utils.java b/core/src/main/java/hudson/util/jna/Kernel32Utils.java
index 00ad01a5aa5398a133facb1c3cff9758cb3ff412..08fb83c3aeb0b41a0fb331ad4a9d83011e3cab85 100644
--- a/core/src/main/java/hudson/util/jna/Kernel32Utils.java
+++ b/core/src/main/java/hudson/util/jna/Kernel32Utils.java
@@ -100,7 +100,7 @@ public class Kernel32Utils {
public static File getTempDir() {
Memory buf = new Memory(1024);
- if (Kernel32.INSTANCE.GetTempPathW(1024,buf)!=0) {
+ if (Kernel32.INSTANCE.GetTempPathW(512,buf)!=0) {// the first arg is number of wchar
return new File(buf.getString(0, true));
} else {
return null;