Changeset 7502 for trunk/src/shell32


Ignore:
Timestamp:
Nov 30, 2001, 6:49:22 PM (24 years ago)
Author:
phaller
Message:

Fixed out-of-scope FIXME,TRACE,WARN macros

Location:
trunk/src/shell32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/pidl.c

    r7359 r7502  
    797797              LPITEMIDLIST, pidl)
    798798{
     799#ifdef __WIN32OS2__
     800  return HEAP_free(pidl);
     801#else
    799802  if(!pidl)
    800803    return FALSE;
    801804  SHFree(pidl);
    802805  return TRUE;
     806#endif
    803807}
    804808/*************************************************************************
  • trunk/src/shell32/shelllink.c

    r7343 r7502  
    3434#undef TRACE
    3535#ifdef DEBUG
     36// PH 2001-11-30
     37// this macro definition causes the control leave the scope of a
     38// non-curly-braced preceeding if statement. Therefore,
     39//   if (p!=NULL)
     40//      TRACE("p->a=%d", p->a)
     41// crashes.
     42//
     43// !!! ENSURE TRACES AND FIXMES WITH PRECEEDING IF STATEMENT
     44// !!! ARE PUT INTO CURLY BRACES
    3645#define TRACE WriteLog("SHELL32: %s", __FUNCTION__); WriteLog
    3746#define WARN WriteLog("WARNING: SHELL32: %s", __FUNCTION__); WriteLog
  • trunk/src/shell32/shellord.c

    r7103 r7502  
    2424#include "debugtools.h"
    2525#include "winnls.h"
     26
     27#ifdef __WIN32OS2__
     28#include "heapstring.h"
     29#else
    2630#include "heap.h"
     31#endif
    2732
    2833#include "shlwapi.h"
     
    347352        TRACE("%p\n",x);
    348353#endif
    349         HeapFree(GetProcessHeap(), 0, x);
     354 
     355#if __WIN32OS2_
     356  HEAP_free(x);
     357#else
     358  HeapFree(GetProcessHeap(), 0, x);
     359#endif
    350360}
    351361
     
    361371{
    362372        LPBYTE ret;
    363 
     373 
     374#ifdef __WIN32OS2__
     375#if MEM_DEBUG
     376        ret = (LPVOID) HEAP_malloc(len+6);
     377#else
     378        ret = (LPVOID) HEAP_malloc(len);
     379#endif
     380#else
    364381#if MEM_DEBUG
    365382        ret = (LPVOID) HeapAlloc(GetProcessHeap(),0,len+6);
    366383#else
    367384        ret = (LPVOID) HeapAlloc(GetProcessHeap(),0,len);
     385#endif
    368386#endif
    369387
Note: See TracChangeset for help on using the changeset viewer.