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

version fixes, resource lookup change + lstrcmpniW added

File:
1 edited

Legend:

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

    r1017 r1131  
    1 /* $Id: heapstring.cpp,v 1.12 1999-09-23 14:15:50 phaller Exp $ */
     1/* $Id: heapstring.cpp,v 1.13 1999-10-04 20:52:33 sandervl Exp $ */
    22
    33/*
     
    234234  return(result);
    235235}
    236 
     236//TODO: Don't know if this is completely correct
     237int WIN32API lstrncmpiW(LPCWSTR str1, LPCWSTR str2, int n)
     238{
     239  INT firstch,lastch;
     240  INT result = 0;
     241
     242  if (n)
     243  {
     244    do
     245    {
     246      firstch = tolower((char)*str1);
     247      lastch = tolower((char)*str2);
     248      str1++;
     249      str2++;
     250    } while (--n && str1 && str2 && firstch == lastch);
     251
     252    result = firstch - lastch;
     253  }
     254
     255  return(result);
     256}
    237257
    238258/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.