mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-25 03:53:18 +03:00
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 LONG g_refCount;
|
||||||
extern GUID g_CLSID;
|
extern GUID g_CLSID;
|
||||||
extern void updateDraggingFilename(char*);
|
extern void setDraggingFilename(char*);
|
||||||
extern void outputDebugStringF(const char *str, ...);
|
extern void outputDebugStringF(const char *str, ...);
|
||||||
|
|
||||||
CDataHandlerExtension::CDataHandlerExtension() :
|
CDataHandlerExtension::CDataHandlerExtension() :
|
||||||
@ -89,7 +89,7 @@ CDataHandlerExtension::Load(__RPC__in LPCOLESTR pszFileName, DWORD dwMode)
|
|||||||
char selectedFilename[MAX_PATH];
|
char selectedFilename[MAX_PATH];
|
||||||
StringCchCopyW(m_selectedFilename, ARRAYSIZE(m_selectedFilename), pszFileName);
|
StringCchCopyW(m_selectedFilename, ARRAYSIZE(m_selectedFilename), pszFileName);
|
||||||
WideCharToMultiByte(CP_ACP, 0, m_selectedFilename, -1, selectedFilename, MAX_PATH, NULL, NULL);
|
WideCharToMultiByte(CP_ACP, 0, m_selectedFilename, -1, selectedFilename, MAX_PATH, NULL, NULL);
|
||||||
updateDraggingFilename(selectedFilename);
|
setDraggingFilename(selectedFilename);
|
||||||
|
|
||||||
outputDebugStringF("synwinxt: < CDataHandlerExtension::Load\n");
|
outputDebugStringF("synwinxt: < CDataHandlerExtension::Load\n");
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
@ -282,11 +282,11 @@ unregisterShellExtDataHandler(CHAR* fileType, const CLSID& clsid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
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);
|
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
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user