Ignore:
Timestamp:
Oct 31, 2010, 10:36:04 AM (14 years ago)
Author:
katerina
Message:

Support for IPv6 (ticket #222).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_registry.c

    r294 r295  
    447447}
    448448
     449#if !defined(KEY_WOW64_64KEY)
     450#define KEY_WOW64_64KEY 0x0100;
     451#endif
     452#if !defined(KEY_WOW64_32KEY)
     453#define KEY_WOW64_32KEY 0x0200;
     454#endif
    449455
    450456
     
    790796
    791797
    792 int CheckThisSubkey (HKEY key, char * subkey, char * path, int isSingle)
     798int CheckThisSubkey (HKEY key, char * subkey, char * path, int isSingle,
     799                     int view)
    793800{
    794801  HKEY hTestKey;
     
    826833                    subkey,
    827834                    0,
    828                     KEY_READ,
     835                    (KEY_READ | view),
    829836                    &hTestKey) == ERROR_SUCCESS
    830837      )
     
    867874  char path[20] = "";
    868875  int pos = 0;
     876  int retval = -1;
    869877 
    870878  if      (0 == strncmp(key, _("HKEY_CLASSES_ROOT"), 17))
     
    924932      return -1;
    925933    }
    926  
    927   return CheckThisSubkey (topKey, subkey, path, isSingle);
     934
     935  /************************ 
     936  if (ShCheckBothViews)
     937    {
     938      CheckThisSubkey (topKey, subkey, path, isSingle, KEY_WOW64_32KEY);
     939      return CheckThisSubkey (topKey, subkey, path, isSingle, KEY_WOW64_64KEY);
     940    }
     941  *************************/
     942
     943  return CheckThisSubkey (topKey, subkey, path, isSingle, 0);
    928944}
    929945
Note: See TracChangeset for help on using the changeset viewer.