Ignore:
Timestamp:
Jun 15, 2002, 7:16:06 PM (23 years ago)
Author:
sandervl
Message:

RegSetValueExA: translated REG_EXPAND_SZ into REG_SZ; registry.dll doesn't like this type for some reason

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/registry.cpp

    r8431 r8687  
    1 /* $Id: registry.cpp,v 1.15 2002-05-16 12:53:45 sandervl Exp $ */
     1/* $Id: registry.cpp,v 1.16 2002-06-15 17:16:06 sandervl Exp $ */
    22
    33/*
     
    10401040                             DWORD  cbData)
    10411041{
    1042   if(fdwType == REG_SZ) {
     1042  if(fdwType == REG_SZ || fdwType == REG_EXPAND_SZ) {
    10431043    dprintf(("ADVAPI32: RegSetValueExA)%08xh,%s,%08xh,%08xh,%s,%08xh)",
    10441044               hkey,
     
    10591059  }
    10601060
     1061  if(fdwType == REG_EXPAND_SZ) {
     1062      dprintf(("!WARNING!: REG_EXPAND_SZ converted to REG_SZ"));
     1063      fdwType = REG_SZ; //registry.dll doesn't like this type
     1064  }
    10611065  return O32_RegSetValueEx(ConvertKey(hkey),
    10621066                           lpszValueName,
Note: See TracChangeset for help on using the changeset viewer.