aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharlydoes <charlydoes@svn>2009-12-04 21:16:04 +0000
committercharlydoes <charlydoes@svn>2009-12-04 21:16:04 +0000
commit673e91db1ce9aeed3b38d246e29337dc5668d4e6 (patch)
treee52a46d073512d9ccb3a9ac9d89d24bba3793b37
parent3afbcccf7ee9e38232ae70be303415e9f45c1bd6 (diff)
[WIN32] cleanup: module filename 'xbmc.xbe' is definitely not valid anymore.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25285 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r--xbmc/cores/DllLoader/dll.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/xbmc/cores/DllLoader/dll.cpp b/xbmc/cores/DllLoader/dll.cpp
index 2294a693a2..db036f5a3c 100644
--- a/xbmc/cores/DllLoader/dll.cpp
+++ b/xbmc/cores/DllLoader/dll.cpp
@@ -264,10 +264,12 @@ extern "C" DWORD WINAPI dllGetModuleFileNameA(HMODULE hModule, LPSTR lpFilename,
{
if (NULL == hModule)
{
- strncpy(lpFilename, "xbmc.xbe", nSize);
- CLog::Log(LOGDEBUG, "GetModuleFileNameA(%p, %p, %u) => '%s'\n",
- hModule, lpFilename, nSize, lpFilename);
- return 8;
+#ifdef _WIN32
+ return GetModuleFileNameA(hModule, lpFilename, nSize);
+#else
+ CLog::Log(LOGDEBUG, "%s - No hModule specified", __FUNCTION__);
+ return 0;
+#endif
}
LibraryLoader* dll = DllLoaderContainer::GetModule(hModule);