Make the multithreaded coinitialize only on 64bit
Change-Id: I5d44efb634051f00cd3ca54b99ce0dea806543be
This commit is contained in:
parent
8c6ab772a6
commit
eeaa425123
@ -12,8 +12,12 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import struct
|
||||
import sys
|
||||
|
||||
if struct.calcsize("P") == 8 and sys.platform == 'win32':
|
||||
# This is needed by Nano Server.
|
||||
# Set COINIT_MULTITHREADED only on x64 interpreters due to issues on x86.
|
||||
import pythoncom
|
||||
sys.coinit_flags = pythoncom.COINIT_MULTITHREADED
|
||||
pythoncom.CoInitializeEx(pythoncom.COINIT_MULTITHREADED)
|
||||
|
Loading…
x
Reference in New Issue
Block a user