Skip to content

Commit c0f1ae2

Browse files
committed
25.4.14 Some fix
1 parent 3c2b81e commit c0f1ae2

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

tewv/Resource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
#define STRING2(str) #str
66
#define VER_Y 25
77
#define VER_M 4
8-
#define VER_D 11
8+
#define VER_D 14
99
#define VER_Z 0

tewv/tewv.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,10 +1075,17 @@ STDMETHODIMP CteBase::DoVerb(LONG iVerb, LPMSG lpmsg, IOleClientSite *pActiveSit
10751075
{
10761076
if (iVerb == OLEIVERB_INPLACEACTIVATE) {
10771077
m_hwndParent = hwndParent;
1078-
WCHAR pszDataPath[MAX_PATH], pszSetting[MAX_PATHEX + 128], pszProxyServer[MAX_PATHEX], pszProxyOverride[MAX_PATHEX];
1078+
WCHAR pszDataPath[MAX_PATH], pszSetting[MAX_PATHEX + 128], pszProxyServer[MAX_PATHEX], pszProxyOverride[MAX_PATHEX], pszTemp[MAX_PATHEX];
10791079
lstrcpy(pszSetting, L"--allow-file-access-from-files --disable-gpu --embedded-browser-webview-dpi-awareness=1");
10801080
GetTempPath(MAX_PATH, pszDataPath);
10811081
PathAppend(pszDataPath, L"tablacus");
1082+
1083+
SYSTEMTIME st;
1084+
GetSystemTime(&st);
1085+
WCHAR pszX[] = L"0123456789abcdefghijklmnopqrstuvwxyz";
1086+
swprintf_s(pszTemp, MAX_PATH, L"wv%02d%c%c%c%c%02d", st.wYear % 100, pszX[st.wMonth], pszX[st.wDay], pszX[st.wHour], pszX[st.wMonth], st.wSecond);
1087+
PathAppend(pszDataPath, pszTemp);
1088+
10821089
pszProxyServer[0] = NULL;
10831090
pszProxyOverride[0] = NULL;
10841091
HKEY hKey;

0 commit comments

Comments
 (0)