Changeset 2603350 in nscp for NSClient++.cpp


Ignore:
Timestamp:
02/23/07 19:25:23 (6 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
2c34b97
Parents:
d48c31a
Message:

Getting ready for the 0.2.7 release, a few minor fixes here and there...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NSClient++.cpp

    r1a22e52 r2603350  
    380380      switch (c) { 
    381381        case NSCAPI::returnInvalidBufferLen: 
    382           LOG_ERROR("Return buffer to small to handle this command."); 
     382          LOG_ERROR("UNKNOWN: Return buffer to small to handle this command."); 
    383383          return c; 
    384384        case NSCAPI::returnIgnored: 
     
    521521  return NSCAPI::isSuccess; 
    522522} 
     523NSCAPI::errorReturn NSAPIReleaseSettingsSectionBuffer(char*** aBuffer, unsigned int * bufLen) { 
     524  arrayBuffer::destroyArrayBuffer(*aBuffer, *bufLen); 
     525  *bufLen = 0; 
     526  *aBuffer = NULL; 
     527  return NSCAPI::isSuccess; 
     528} 
    523529 
    524530NSCAPI::boolReturn NSAPICheckLogMessages(int messageType) { 
     
    651657 
    652658LPVOID NSAPILoader(char*buffer) { 
    653   if (stricmp(buffer, "NSAPIGetApplicationName") == 0) 
     659  if (_stricmp(buffer, "NSAPIGetApplicationName") == 0) 
    654660    return &NSAPIGetApplicationName; 
    655   if (stricmp(buffer, "NSAPIGetApplicationVersionStr") == 0) 
     661  if (_stricmp(buffer, "NSAPIGetApplicationVersionStr") == 0) 
    656662    return &NSAPIGetApplicationVersionStr; 
    657   if (stricmp(buffer, "NSAPIGetSettingsSection") == 0) 
     663  if (_stricmp(buffer, "NSAPIGetSettingsString") == 0) 
     664    return &NSAPIGetSettingsString; 
     665  if (_stricmp(buffer, "NSAPIGetSettingsSection") == 0) 
    658666    return &NSAPIGetSettingsSection; 
    659   if (stricmp(buffer, "NSAPIGetSettingsString") == 0) 
    660     return &NSAPIGetSettingsString; 
    661   if (stricmp(buffer, "NSAPIGetSettingsInt") == 0) 
     667  if (_stricmp(buffer, "NSAPIReleaseSettingsSectionBuffer") == 0) 
     668    return &NSAPIReleaseSettingsSectionBuffer; 
     669  if (_stricmp(buffer, "NSAPIGetSettingsInt") == 0) 
    662670    return &NSAPIGetSettingsInt; 
    663   if (stricmp(buffer, "NSAPIMessage") == 0) 
     671  if (_stricmp(buffer, "NSAPIMessage") == 0) 
    664672    return &NSAPIMessage; 
    665   if (stricmp(buffer, "NSAPIStopServer") == 0) 
     673  if (_stricmp(buffer, "NSAPIStopServer") == 0) 
    666674    return &NSAPIStopServer; 
    667   if (stricmp(buffer, "NSAPIInject") == 0) 
     675  if (_stricmp(buffer, "NSAPIInject") == 0) 
    668676    return &NSAPIInject; 
    669   if (stricmp(buffer, "NSAPIGetBasePath") == 0) 
     677  if (_stricmp(buffer, "NSAPIGetBasePath") == 0) 
    670678    return &NSAPIGetBasePath; 
    671   if (stricmp(buffer, "NSAPICheckLogMessages") == 0) 
     679  if (_stricmp(buffer, "NSAPICheckLogMessages") == 0) 
    672680    return &NSAPICheckLogMessages; 
    673   if (stricmp(buffer, "NSAPIEncrypt") == 0) 
     681  if (_stricmp(buffer, "NSAPIEncrypt") == 0) 
    674682    return &NSAPIEncrypt; 
    675   if (stricmp(buffer, "NSAPIDecrypt") == 0) 
     683  if (_stricmp(buffer, "NSAPIDecrypt") == 0) 
    676684    return &NSAPIDecrypt; 
    677   if (stricmp(buffer, "NSAPISetSettingsString") == 0) 
     685  if (_stricmp(buffer, "NSAPISetSettingsString") == 0) 
    678686    return &NSAPISetSettingsString; 
    679   if (stricmp(buffer, "NSAPISetSettingsInt") == 0) 
     687  if (_stricmp(buffer, "NSAPISetSettingsInt") == 0) 
    680688    return &NSAPISetSettingsInt; 
    681   if (stricmp(buffer, "NSAPIWriteSettings") == 0) 
     689  if (_stricmp(buffer, "NSAPIWriteSettings") == 0) 
    682690    return &NSAPIWriteSettings; 
    683   if (stricmp(buffer, "NSAPIReadSettings") == 0) 
     691  if (_stricmp(buffer, "NSAPIReadSettings") == 0) 
    684692    return &NSAPIReadSettings; 
    685   if (stricmp(buffer, "NSAPIRehash") == 0) 
     693  if (_stricmp(buffer, "NSAPIRehash") == 0) 
    686694    return &NSAPIRehash; 
    687695  return NULL; 
Note: See TracChangeset for help on using the changeset viewer.