From: Julian Smart Date: Mon, 8 Apr 2002 11:55:05 +0000 (+0000) Subject: Re-enabled dynamic library code in wxFileName so X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/35a6691a077b06357b29e068bd5266f854960758 Re-enabled dynamic library code in wxFileName so that normalization works again in Win32. I don't know why it had been disabled. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filename.cpp b/src/common/filename.cpp index baaf7e0f33..15179463a4 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -82,7 +82,7 @@ #include "wx/config.h" // for wxExpandEnvVars #include "wx/utils.h" #include "wx/file.h" -//#include "wx/dynlib.h" // see GetLongPath below, code disabled. +#include "wx/dynlib.h" // For GetShort/LongPathName #ifdef __WIN32__ @@ -1341,8 +1341,7 @@ wxString wxFileName::GetLongPath() const #if defined(__WIN32__) && !defined(__WXMICROWIN__) bool success = FALSE; - // VZ: why was this code disabled? -#if 0 // wxUSE_DYNAMIC_LOADER +#if wxUSE_DYNAMIC_LOADER typedef DWORD (*GET_LONG_PATH_NAME)(const wxChar *, wxChar *, DWORD); static bool s_triedToLoad = FALSE;