diff options
author | Bob Arnson <bob@firegiant.com> | 2022-09-05 21:09:07 -0400 |
---|---|---|
committer | Bob Arnson <github@bobs.org> | 2022-09-05 21:57:49 -0400 |
commit | f61479585d865372645cb18c982aa708dd975da3 (patch) | |
tree | e97e9829deee0bea7490261eddb84a680a26002f /src/tools | |
parent | 237bdc6a97c0dd455da99c16e6b3b7cac4c79e86 (diff) | |
download | wix-f61479585d865372645cb18c982aa708dd975da3.tar.gz wix-f61479585d865372645cb18c982aa708dd975da3.tar.bz2 wix-f61479585d865372645cb18c982aa708dd975da3.zip |
Make sure ThmViewer can load relative paths.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/thmviewer/load.cpp | 4 |
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 | { |