Ignore:
Timestamp:
Oct 20, 2000, 1:46:48 PM (25 years ago)
Author:
sandervl
Message:

basic support for VIO console command line apps added + FormatMessage addition

File:
1 edited

Legend:

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

    r4440 r4502  
    1 /* $Id: message.cpp,v 1.12 2000-10-06 11:04:01 sandervl Exp $ */
     1/* $Id: message.cpp,v 1.13 2000-10-20 11:46:47 sandervl Exp $ */
    22
    33/*
     
    2626#include "heapstring.h"
    2727
    28 #define DBG_LOCALLOG    DBG_message
     28#define DBG_LOCALLOG    DBG_message
    2929#include "dbglocal.h"
    3030
     
    223223         }
    224224
     225         if (dwFlags & FORMAT_MESSAGE_IGNORE_INSERTS) {
     226            /* Ignore inserts, except for '%0' - maybe more? */
     227            if (*f == '0') {
     228               eos = TRUE;
     229               f++;
     230               continue;
     231            }
     232            else {
     233               ADD_TO_T('%');
     234               continue;
     235            }
     236         }
     237
    225238         switch (*f)
    226239         {
     
    356369    HeapFree(GetProcessHeap(),0,from);
    357370
     371  dprintf(("gives: %s", (dwFlags & FORMAT_MESSAGE_ALLOCATE_BUFFER) ?
     372           *(LPSTR*)lpBuffer : lpBuffer));
     373
    358374  return (dwFlags & FORMAT_MESSAGE_ALLOCATE_BUFFER) ?
    359375         strlen(*(LPSTR*)lpBuffer):
     
    446462               continue;
    447463            }
     464
     465            if (dwFlags & FORMAT_MESSAGE_IGNORE_INSERTS) {
     466               /* Ignore inserts, except for '%0' - maybe more? */
     467               if (*f == '0') {
     468                  eos = TRUE;
     469                  f++;
     470                  continue;
     471               }
     472               else {
     473                  ADD_TO_T('%');
     474                  continue;
     475               }
     476            }
     477
    448478            switch (*f) {
    449479            case '1':case '2':case '3':case '4':case '5':
Note: See TracChangeset for help on using the changeset viewer.