From 94933fc7d00c3c66a066f331c42ad25d21fbb7dd Mon Sep 17 00:00:00 2001 From: masshash Date: Sat, 25 Mar 2023 10:56:44 +0000 Subject: [PATCH] windows: fix constant values for JobObjectInformationClass The constant values were incorrect and has been fixed in this CL. Reference: https://learn.microsoft.com/en-us/windows/win32/api/jobapi2/nf-jobapi2-setinformationjobobject#parameters Change-Id: Id97e561b6838a18216617d86aa11c79b6b2f4095 GitHub-Last-Rev: cd1e32d2dedad7c4adbe07c3029c48f9604e76d2 GitHub-Pull-Request: golang/sys#150 Reviewed-on: https://go-review.googlesource.com/c/sys/+/479375 Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Alex Brainman Run-TryBot: Alex Brainman Reviewed-by: Matthew Dempsky --- windows/types_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/types_windows.go b/windows/types_windows.go index 857acf103..0dbb20841 100644 --- a/windows/types_windows.go +++ b/windows/types_windows.go @@ -2229,10 +2229,10 @@ const ( JobObjectExtendedLimitInformation = 9 JobObjectGroupInformation = 11 JobObjectGroupInformationEx = 14 - JobObjectLimitViolationInformation2 = 35 + JobObjectLimitViolationInformation2 = 34 JobObjectNetRateControlInformation = 32 JobObjectNotificationLimitInformation = 12 - JobObjectNotificationLimitInformation2 = 34 + JobObjectNotificationLimitInformation2 = 33 JobObjectSecurityLimitInformation = 5 )