Ignore:
Timestamp:
Oct 4, 1999, 10:53:08 PM (26 years ago)
Author:
sandervl
Message:

VerQueryValueW fix

File:
1 edited

Legend:

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

    r1106 r1132  
    1 /* $Id: version.cpp,v 1.6 1999-10-02 04:09:55 sandervl Exp $ */
     1/* $Id: version.cpp,v 1.7 1999-10-04 20:53:08 sandervl Exp $ */
    22
    33/*
     
    7979    while ( (DWORD)child < (DWORD)info + info->wLength )
    8080    {
    81 //        if ( !lstrcmpniW( child->szKey, szKey, cbKey ) )
    82         if ( !lstrcmpiW( child->szKey, szKey) )
     81        if ( !lstrcmpniW( child->szKey, szKey, cbKey ) )
    8382            return child;
    8483
     
    475474        AsciiToUnicode((char *)lpSubBlock, ustring);
    476475        rc = VerQueryValueW( pBlock, (LPWSTR)ustring, &ubuffer, &len);
     476        if(rc == 0) {
     477                free(ustring);
     478                return 0;
     479        }
    477480        if(lpSubBlock[0] == '\\' && lpSubBlock[1] == 0)
    478481          *lplpBuffer = ubuffer;
Note: See TracChangeset for help on using the changeset viewer.