1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 09:12:24 +00:00

We defined tried_shgetfolderpath but never actually set it. Harmless, but fixed.

[originally from svn r8740]
This commit is contained in:
Jacob Nevins 2009-11-08 19:25:22 +00:00
parent b85038d8a9
commit 8b68066205

View File

@ -499,6 +499,7 @@ static HANDLE access_random_seed(int action)
* so stuff that. */ * so stuff that. */
shell32_module = LoadLibrary("SHELL32.DLL"); shell32_module = LoadLibrary("SHELL32.DLL");
GET_WINDOWS_FUNCTION(shell32_module, SHGetFolderPathA); GET_WINDOWS_FUNCTION(shell32_module, SHGetFolderPathA);
tried_shgetfolderpath = TRUE;
} }
if (p_SHGetFolderPathA) { if (p_SHGetFolderPathA) {
if (SUCCEEDED(p_SHGetFolderPathA(NULL, CSIDL_LOCAL_APPDATA, if (SUCCEEDED(p_SHGetFolderPathA(NULL, CSIDL_LOCAL_APPDATA,