aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/thmviewer/load.cpp4
1 files 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(
69 LOAD_THREAD_CONTEXT* pContext = static_cast<LOAD_THREAD_CONTEXT*>(pvContext); 69 LOAD_THREAD_CONTEXT* pContext = static_cast<LOAD_THREAD_CONTEXT*>(pvContext);
70 HWND hWnd = pContext->hWnd; 70 HWND hWnd = pContext->hWnd;
71 71
72 hr = StrAllocString(&sczThemePath, pContext->wzThemePath, 0); 72 hr = PathGetFullPathName(pContext->wzThemePath, &sczThemePath, NULL, NULL);
73 ExitOnFailure(hr, "Failed to copy path to initial theme file."); 73 ExitOnFailure(hr, "Failed to get full path to initial theme file.");
74 74
75 if (pContext->wzWxlPath) 75 if (pContext->wzWxlPath)
76 { 76 {