Make sure ThmViewer can load relative paths.
Bob Arnson committed
Sep 5, 2022 at 21:09 UTC
f61479585d865372645cb18c982aa708dd975da3
1 file changed
+2
-2
src/tools/thmviewer/load.cpp
+2
-2
@@ -69,8 +69,8 @@ static DWORD WINAPI LoadThreadProc(
69
LOAD_THREAD_CONTEXT* pContext = static_cast<LOAD_THREAD_CONTEXT*>(pvContext);
70
HWND hWnd = pContext->hWnd;
71
72
- hr = StrAllocString(&sczThemePath, pContext->wzThemePath, 0);
73
- ExitOnFailure(hr, "Failed to copy path to initial theme file.");
72
+ hr = PathGetFullPathName(pContext->wzThemePath, &sczThemePath, NULL, NULL);
73
+ ExitOnFailure(hr, "Failed to get full path to initial theme file.");
74
75
if (pContext->wzWxlPath)
76
{