fixed: "set" should be used instead of "update"

This commit is contained in:
Nick Bolton 2014-02-07 15:55:59 +00:00
parent 3ee4f55a61
commit fe40c670a4
2 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@
extern LONG g_refCount;
extern GUID g_CLSID;
extern void updateDraggingFilename(char*);
extern void setDraggingFilename(char*);
extern void outputDebugStringF(const char *str, ...);
CDataHandlerExtension::CDataHandlerExtension() :
@ -89,7 +89,7 @@ CDataHandlerExtension::Load(__RPC__in LPCOLESTR pszFileName, DWORD dwMode)
char selectedFilename[MAX_PATH];
StringCchCopyW(m_selectedFilename, ARRAYSIZE(m_selectedFilename), pszFileName);
WideCharToMultiByte(CP_ACP, 0, m_selectedFilename, -1, selectedFilename, MAX_PATH, NULL, NULL);
updateDraggingFilename(selectedFilename);
setDraggingFilename(selectedFilename);
outputDebugStringF("synwinxt: < CDataHandlerExtension::Load\n");
return S_OK;

View File

@ -282,11 +282,11 @@ unregisterShellExtDataHandler(CHAR* fileType, const CLSID& clsid)
}
void
updateDraggingFilename(char* filename)
setDraggingFilename(char* filename)
{
outputDebugStringF("synwinxt: > updateDraggingFilename, filename=%s\n", filename);
outputDebugStringF("synwinxt: > setDraggingFilename, filename=%s\n", filename);
memcpy(g_draggingFilename, filename, MAX_PATH);
outputDebugStringF("synwinxt: < updateDraggingFilename, g_draggingFilename=%s\n", g_draggingFilename);
outputDebugStringF("synwinxt: < setDraggingFilename, g_draggingFilename=%s\n", g_draggingFilename);
}
void