Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
0e673e1f
Commit
0e673e1f
authored
Dec 29, 2010
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EffectsEngine: Blind fix for Win32 effects loading.
parent
72b3e0dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/EffectsEngine/EffectsEngine.cpp
src/EffectsEngine/EffectsEngine.cpp
+9
-0
No files found.
src/EffectsEngine/EffectsEngine.cpp
View file @
0e673e1f
...
...
@@ -140,7 +140,16 @@ EffectsEngine::loadEffects()
#elif defined ( Q_OS_WIN32 )
TCHAR
appDir
[
128
];
if
(
GetModuleFileName
(
NULL
,
appDir
,
128
)
>
0
)
{
wchat_t
*
pos
=
wcsrchr
(
appDir
,
'\\'
);
if
(
pos
==
NULL
)
{
qWarning
()
<<
"Can't use ModuleFileName:"
<<
appDir
;
return
;
}
*
pos
=
0
;
pathList
<<
QString
(
appDir
);
}
else
{
qWarning
()
<<
"Failed to get application directory. Using current path."
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment