* shared.cc (shared_info::initialize): Use correct value for version
comparison. * include/cygwin/version.h (CYGWIN_VERSION_MAGIC): Use all of a DWORD for magic calculation.
This commit is contained in:
parent
046a4e718e
commit
082512aea1
|
@ -1,3 +1,10 @@
|
||||||
|
2002-10-22 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* shared.cc (shared_info::initialize): Use correct value for version
|
||||||
|
comparison.
|
||||||
|
* include/cygwin/version.h (CYGWIN_VERSION_MAGIC): Use all of a DWORD
|
||||||
|
for magic calculation.
|
||||||
|
|
||||||
2002-10-22 Christopher Faylor <cgf@redhat.com>
|
2002-10-22 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Oops. Only
|
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Oops. Only
|
||||||
|
|
|
@ -230,5 +230,5 @@ details. */
|
||||||
cygwin_internal (CW_GETVERSIONINFO).
|
cygwin_internal (CW_GETVERSIONINFO).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CYGWIN_VERSION_MAGIC(a, b) ((unsigned) (((unsigned short) a) | (unsigned short) b))
|
#define CYGWIN_VERSION_MAGIC(a, b) ((unsigned) ((((unsigned short) a) << 16) | (unsigned short) b))
|
||||||
#define CYGWIN_VERSION_MAGIC_VERSION(a) ((unsigned) ((unsigned)a & 0xffff))
|
#define CYGWIN_VERSION_MAGIC_VERSION(a) ((unsigned) ((unsigned)a & 0xffff))
|
||||||
|
|
|
@ -149,7 +149,7 @@ shared_info::initialize ()
|
||||||
if (version)
|
if (version)
|
||||||
{
|
{
|
||||||
if (version != SHARED_VERSION_MAGIC)
|
if (version != SHARED_VERSION_MAGIC)
|
||||||
multiple_cygwin_problem ("shared", version, SHARED_VERSION);
|
multiple_cygwin_problem ("shared", version, SHARED_VERSION_MAGIC);
|
||||||
else if (cb != SHARED_INFO_CB)
|
else if (cb != SHARED_INFO_CB)
|
||||||
multiple_cygwin_problem ("shared size", cb, SHARED_INFO_CB);
|
multiple_cygwin_problem ("shared size", cb, SHARED_INFO_CB);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue