Skip to content

Commit

Permalink
Force DLL search path to only be the system folder for any dynamicall…
Browse files Browse the repository at this point in the history
…y loaded Dll's

Fixed #1
  • Loading branch information
pmeenan committed Dec 1, 2016
1 parent 75ecded commit e9d07e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ END_MESSAGE_MAP()

CWinShaperApp::CWinShaperApp()
{
SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32);

// support Restart Manager
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;

Expand Down
4 changes: 3 additions & 1 deletion gui/targetver.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@

// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.

#include <winsdkver.h>
#define WINVER 0x0603
#define _WIN32_WINNT 0x0603
#include <SDKDDKVer.h>

0 comments on commit e9d07e6

Please sign in to comment.