From f61479585d865372645cb18c982aa708dd975da3 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Mon, 5 Sep 2022 21:09:07 -0400 Subject: Make sure ThmViewer can load relative paths. --- src/tools/thmviewer/load.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/thmviewer/load.cpp b/src/tools/thmviewer/load.cpp index 0267402a..924f373d 100644 --- a/src/tools/thmviewer/load.cpp +++ b/src/tools/thmviewer/load.cpp @@ -69,8 +69,8 @@ static DWORD WINAPI LoadThreadProc( LOAD_THREAD_CONTEXT* pContext = static_cast(pvContext); HWND hWnd = pContext->hWnd; - hr = StrAllocString(&sczThemePath, pContext->wzThemePath, 0); - ExitOnFailure(hr, "Failed to copy path to initial theme file."); + hr = PathGetFullPathName(pContext->wzThemePath, &sczThemePath, NULL, NULL); + ExitOnFailure(hr, "Failed to get full path to initial theme file."); if (pContext->wzWxlPath) { -- cgit v1.2.3-55-g6feb