Ignore:
Timestamp:
Dec 1, 1999, 11:48:16 AM (26 years ago)
Author:
sandervl
Message:

RegQueryInfoKeyW fix

File:
1 edited

Legend:

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

    r1817 r1915  
    1 /* $Id: registry.cpp,v 1.6 1999-11-23 19:33:09 sandervl Exp $ */
     1/* $Id: registry.cpp,v 1.7 1999-12-01 10:48:16 sandervl Exp $ */
    22
    33/*
     
    732732  if(rc == ERROR_SUCCESS)
    733733  {
    734     astring = (char *)malloc(*arg3);
    735     strcpy(astring, (char *)arg2);
    736     AsciiToUnicode(astring, arg2);
    737     free(astring);
     734        if(*arg3) {
     735                astring = (char *)malloc(*arg3);
     736                strcpy(astring, (char *)arg2);
     737                AsciiToUnicode(astring, arg2);
     738                free(astring);
     739        }
     740        else    *arg2 = 0;
    738741  }
    739742  return(rc);
Note: See TracChangeset for help on using the changeset viewer.