fixed: "set" should be used instead of "update"
This commit is contained in:
parent
3ee4f55a61
commit
fe40c670a4
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue