diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-09 14:47:26 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-09 14:47:26 +0400 |
commit | ac73b2a1222e4ebcd1555ae087f7279887a5f210 (patch) | |
tree | 360292f0c73fe2ce7dcf6d314bcbf453dc9601a3 /src | |
parent | 06aaa5ed23a596227d60df6b13fe5dce78a809f3 (diff) |
cosmetics: change the dlls name to lowercase in the LoadLibrary calls
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5054 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src')
-rw-r--r-- | src/Subtitles/STS.cpp | 2 | ||||
-rw-r--r-- | src/filters/renderer/MpcAudioRenderer/MpcAudioRenderer.cpp | 2 | ||||
-rw-r--r-- | src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp | 2 | ||||
-rw-r--r-- | src/mpc-hc/MiniDump.cpp | 12 | ||||
-rw-r--r-- | src/thirdparty/BaseClasses/videoctl.cpp | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/src/Subtitles/STS.cpp b/src/Subtitles/STS.cpp index 55d5c3ea0..420482982 100644 --- a/src/Subtitles/STS.cpp +++ b/src/Subtitles/STS.cpp @@ -1301,7 +1301,7 @@ static bool LoadFont(CString& font) HANDLE hFont = INVALID_HANDLE_VALUE;
- if (HMODULE hModule = LoadLibrary(_T("GDI32.DLL"))) {
+ if (HMODULE hModule = LoadLibrary(_T("gdi32.dll"))) {
typedef HANDLE (WINAPI *PAddFontMemResourceEx)( IN PVOID, IN DWORD, IN PVOID , IN DWORD*);
if (PAddFontMemResourceEx f = (PAddFontMemResourceEx)GetProcAddress(hModule, "AddFontMemResourceEx")) {
DWORD cFonts;
diff --git a/src/filters/renderer/MpcAudioRenderer/MpcAudioRenderer.cpp b/src/filters/renderer/MpcAudioRenderer/MpcAudioRenderer.cpp index 1d18d57fa..b973327c0 100644 --- a/src/filters/renderer/MpcAudioRenderer/MpcAudioRenderer.cpp +++ b/src/filters/renderer/MpcAudioRenderer/MpcAudioRenderer.cpp @@ -146,7 +146,7 @@ CMpcAudioRenderer::CMpcAudioRenderer(LPUNKNOWN punk, HRESULT *phr) // Load Vista specifics DLLs
- hLib = LoadLibrary (L"AVRT.dll");
+ hLib = LoadLibrary (L"avrt.dll");
if (hLib != NULL) {
pfAvSetMmThreadCharacteristicsW = (PTR_AvSetMmThreadCharacteristicsW) GetProcAddress (hLib, "AvSetMmThreadCharacteristicsW");
pfAvRevertMmThreadCharacteristics = (PTR_AvRevertMmThreadCharacteristics) GetProcAddress (hLib, "AvRevertMmThreadCharacteristics");
diff --git a/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp index e2f6de8d1..2764fcb81 100644 --- a/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp @@ -130,7 +130,7 @@ CEVRAllocatorPresenter::CEVRAllocatorPresenter(HWND hWnd, bool bFullscreen, HRES #endif
// Load Vista specifics DLLs
- hLib = LoadLibrary (L"AVRT.dll");
+ hLib = LoadLibrary (L"avrt.dll");
pfAvSetMmThreadCharacteristicsW = hLib ? (PTR_AvSetMmThreadCharacteristicsW) GetProcAddress (hLib, "AvSetMmThreadCharacteristicsW") : NULL;
pfAvSetMmThreadPriority = hLib ? (PTR_AvSetMmThreadPriority) GetProcAddress (hLib, "AvSetMmThreadPriority") : NULL;
pfAvRevertMmThreadCharacteristics = hLib ? (PTR_AvRevertMmThreadCharacteristics) GetProcAddress (hLib, "AvRevertMmThreadCharacteristics") : NULL;
diff --git a/src/mpc-hc/MiniDump.cpp b/src/mpc-hc/MiniDump.cpp index 0fc66986d..5f0529753 100644 --- a/src/mpc-hc/MiniDump.cpp +++ b/src/mpc-hc/MiniDump.cpp @@ -87,10 +87,10 @@ BOOL CMiniDump::PreventSetUnhandledExceptionFilter() LONG WINAPI CMiniDump::UnhandledExceptionFilter( _EXCEPTION_POINTERS *lpTopLevelExceptionFilter )
{
- LONG retval = EXCEPTION_CONTINUE_SEARCH;
- HMODULE hDll = NULL;
- TCHAR szResult[ 800 ];
- TCHAR szDbgHelpPath[ _MAX_PATH ];
+ LONG retval = EXCEPTION_CONTINUE_SEARCH;
+ HMODULE hDll = NULL;
+ TCHAR szResult[800];
+ TCHAR szDbgHelpPath[_MAX_PATH];
CString strDumpPath;
if ( !m_bMiniDumpEnabled ) {
@@ -104,14 +104,14 @@ LONG WINAPI CMiniDump::UnhandledExceptionFilter( _EXCEPTION_POINTERS *lpTopLevel if ( GetModuleFileName(NULL, szDbgHelpPath, _MAX_PATH) ) {
TCHAR *pSlash = _tcsrchr( szDbgHelpPath, _T('\\') );
if ( pSlash != NULL ) {
- _tcscpy_s( pSlash + 1, _MAX_PATH + szDbgHelpPath - pSlash, _T("DBGHELP.DLL") );
+ _tcscpy_s( pSlash + 1, _MAX_PATH + szDbgHelpPath - pSlash, _T("dbghelp.dll") );
hDll = ::LoadLibrary( szDbgHelpPath );
}
}
if ( hDll == NULL ) {
// load any version we can
- hDll = ::LoadLibrary( _T("DBGHELP.DLL") );
+ hDll = ::LoadLibrary( _T("dbghelp.dll") );
}
if ( hDll != NULL ) {
diff --git a/src/thirdparty/BaseClasses/videoctl.cpp b/src/thirdparty/BaseClasses/videoctl.cpp index 9fc2ced06..85119d485 100644 --- a/src/thirdparty/BaseClasses/videoctl.cpp +++ b/src/thirdparty/BaseClasses/videoctl.cpp @@ -619,11 +619,11 @@ HRESULT CLoadDirectDraw::LoadDirectDraw(__in LPSTR szDevice) if(!m_hDirectDraw)
{
UINT ErrorMode = SetErrorMode(SEM_NOOPENFILEERRORBOX);
- m_hDirectDraw = LoadLibrary(TEXT("DDRAW.DLL"));
+ m_hDirectDraw = LoadLibrary(TEXT("ddraw.dll"));
SetErrorMode(ErrorMode);
if (m_hDirectDraw == NULL) {
- DbgLog((LOG_ERROR,1,TEXT("Can't load DDRAW.DLL")));
+ DbgLog((LOG_ERROR,1,TEXT("Can't load ddraw.dll")));
NOTE("No library");
return E_NOINTERFACE;
}
|