based on patch from Qian Hong Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44812 Signed-off-by: Vijay Kiran Kamuju infyquest@gmail.com
Please remove this empty line.
Please test against these hard-coded values. And add a FIXME here because they should be queried from process and SetProcessWorkingSetSize() can change them.
Please use sizeof(qlimits) instead.
You should check ProcessInformationLength == sizeof(QUOTA_LIMITS) and remove this. You didn't correctly test the required size. You should test size of sizeof(QUOTA_LIMITS)-/+1
On Fri, Mar 20, 2020 at 2:08 PM Zhiyi Zhang zzhang@codeweavers.com wrote:
Will incorporate this fix
I will put a FIXME, saying that its a semistub. And also put a comment that these values that SetProcessWorkingSetSize can change these values. PagedPoolLimit, NonPagedPoolLimit always changes from windows version. MinimumWorkingSetSize,MaximumWorkingSetSize are using the default values, it may differ from system to system based on available Physical RAM. PagefileLimit and TimeLimit can be tested, if you want I can add checks for them as they are consistent across versions. This is a semi-stub implementation, reporting default values.
Will incorporate this fix.
Will add more tests for size = sizeof(QUOTA_LIMITS)+1 and sizeof(QUOTA_LIMITS)-1. Currently have a test for sizeof(QUOTA_LIMITS)*2, I will change it.
Thanks for the review