[Python-Dev] RE: [Python-checkins] CVS: python/dist/src/PC WinMain.c,1.3,1.4

Bill Tutt billtut@microsoft.com
Sat, 8 Jul 2000 13:54:36 -0700

Heh, if the CRT really returns a long from the get OS handle function, then
its typed wrong. :)
For Win32 sizeof(HANDLE) == sizeof(long), that isn't the case for Win64. 


 -----Original Message-----
From: 	Barry Scott [mailto:barry@scottb.demon.co.uk] 
Sent:	Saturday, July 08, 2000 1:37 PM
To:	Bill Tutt; python-dev@python.org
Subject:	RE: [Python-checkins] CVS: python/dist/src/PC

	Your code is a far better solution.

> B)	The -1's below really should be: INVALID_HANDLE_VALUE

	Check with the implementation and MSDN you will see that
	the return type is long and the error condition is -1.
	INVALID_HANDLE_VALUE is not of type long and will give
	a compile warning C4047.