ReactOS 0.4.15-dev-7918-g2a2556c
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 626 of file travellog.cpp.

627{
628 return ShellObjectCreatorInit<CTravelLog>(riid, ppv);
629}
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 462 of file travellog.cpp.

463{
464 wchar_t tempBuffer[MAX_PATH * 2];
465 wchar_t ch;
466 wchar_t *srcPtr;
467 wchar_t *dstPtr;
468
469 srcPtr = buffer;
470 dstPtr = tempBuffer;
471 while (*srcPtr != 0)
472 {
473 ch = *srcPtr++;
474 *dstPtr++ = ch;
475 if (ch == '&')
476 *dstPtr++ = '&';
477 }
478 *dstPtr = 0;
479 wcscpy(buffer, tempBuffer);
480}
#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().