Ignore:
Timestamp:
Jun 9, 1999, 11:17:44 PM (26 years ago)
Author:
phaller
Message:

Fix: RegConnectRegistryA/W always connect to local registry now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/advapi32/ADVAPI32.CPP

    r51 r88  
    241241//******************************************************************************
    242242DWORD WIN32API RegOpenKeyA(HKEY    arg1,
    243                            LPCSTR arg2, 
     243                           LPCSTR arg2,
    244244                           PHKEY   arg3)
    245245{
     
    45024502           hKey,
    45034503           phkResult));
    4504  
     4504
    45054505  if (lpszComputerName == NULL) /* local registry ? */
    45064506  {
    45074507    /* @@@PH experimental !!! */
    45084508    *phkResult = hKey;
    4509    
     4509
    45104510    return (NO_ERROR);
    45114511  }
    4512  
     4512
     4513#if 0
    45134514  return (ERROR_ACCESS_DENIED); /* signal failure */
     4515#else
     4516  // @@@PH 1999/06/09 always fake this API
     4517  *phkResult = hKey;
     4518  return (NO_ERROR);
     4519#endif
    45144520}
    45154521
     
    45374543  LPSTR pszAscii;
    45384544  LONG rc;         /* returncode from call to ascii version of this function */
    4539  
     4545
    45404546  if (lpszComputerName != NULL)
    45414547    pszAscii = UnicodeToAsciiString((LPWSTR)lpszComputerName);
    45424548  else
    45434549    pszAscii = NULL;
    4544  
     4550
    45454551  dprintf(("ADVAPI32: RegConnectRegistryW(%s,%08xh,%08xh) not implemented.\n",
    45464552           pszAscii,
    45474553           hKey,
    45484554           phkResult));
    4549  
     4555
    45504556  rc = RegConnectRegistryA(pszAscii,
    45514557                           hKey,
Note: See TracChangeset for help on using the changeset viewer.