Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
1.19.0
-
None
Description
I've noticed a strange behavior in MinGW build of Qbs. TestBlackboxQt::dbusAdaptors and TestBlackboxQt::dbusInterfaces tests fail because Qbs passes invalid WINVER macro:
"-DWINVER=0x0000" "-D_WIN32_WINNT=0x0000" "-D_WIN32_WINDOWS=0x0000"
Debugging shows the problem is in the getWindowsVersionInFormat:
return "0x" + ("0000" + ((major << 8) | minor).toString(16)).slice(-4);
For some reason, ((major << 8) | minor) is 0 for non-zero values:
console.info(major);
console.info(minor);
console.info(((major << 8) | minor).toString(16));
console.info("0000" + ((major << 8) | minor).toString(16));
used version = 6.0 6 0 0 00000
QtScript bug?