Ignore:
Timestamp:
Oct 2, 2000, 3:37:10 PM (25 years ago)
Author:
sandervl
Message:

fixed VERSION_OsIsUnicode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shlwapi/shlwapi.cpp

    r3687 r4371  
    1 /* $Id: shlwapi.cpp,v 1.8 2000-06-12 08:09:40 phaller Exp $ */
     1/* $Id: shlwapi.cpp,v 1.9 2000-10-02 13:37:10 sandervl Exp $ */
    22
    33/*
     
    5757 * required unicode conversion or not.
    5858 */
    59 static BOOL flagOsIsUnicode = FALSE;
    6059
     60BOOL VERSION_OsIsUnicode(void)
     61{
     62 static version = 0;
    6163
    62 BOOL VERSION_OsIsUnicode(VOID)
    63 {
    64   return flagOsIsUnicode;
     64  if(version == 0) {
     65        version = GetVersion();
     66  }
     67  /* if high-bit of version is 0, we are emulating NT */
     68  return !(version & 0x80000000);
    6569}
    6670
Note: See TracChangeset for help on using the changeset viewer.