ReactOS 0.4.15-dev-8434-g155a7c7
travellog.cpp File Reference
#include "precomp.h"
Include dependency graph for travellog.cpp:

Go to the source code of this file.

Classes

class  CTravelEntry
 
class  CTravelLog
 

Functions

static void FixAmpersands (wchar_t *buffer)
 
HRESULT CTravelLog_CreateInstance (REFIID riid, void **ppv)
 

Function Documentation

◆ CTravelLog_CreateInstance()

HRESULT CTravelLog_CreateInstance ( REFIID  riid,
void **  ppv 
)

Definition at line 632 of file travellog.cpp.

633{
634 return ShellObjectCreatorInit<CTravelLog>(riid, ppv);
635}
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39

Referenced by CShellBrowser::GetTravelLog().

◆ FixAmpersands()

static void FixAmpersands ( wchar_t buffer)
static

Definition at line 468 of file travellog.cpp.

469{
470 wchar_t tempBuffer[MAX_PATH * 2];
471 wchar_t ch;
472 wchar_t *srcPtr;
473 wchar_t *dstPtr;
474
475 srcPtr = buffer;
476 dstPtr = tempBuffer;
477 while (*srcPtr != 0)
478 {
479 ch = *srcPtr++;
480 *dstPtr++ = ch;
481 if (ch == '&')
482 *dstPtr++ = '&';
483 }
484 *dstPtr = 0;
485 wcscpy(buffer, tempBuffer);
486}
#define MAX_PATH
Definition: compat.h:34
GLuint buffer
Definition: glext.h:5915
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)

Referenced by CTravelLog::InsertMenuEntries().