Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
34538823
Commit
34538823
authored
Jan 09, 2004
by
Jon Lech Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/demux/mp4/drms.c: switched to dyn. linking of SHGetFolderPath
parent
ea0d4fc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
modules/demux/mp4/drms.c
modules/demux/mp4/drms.c
+26
-3
No files found.
modules/demux/mp4/drms.c
View file @
34538823
...
...
@@ -2,7 +2,7 @@
* drms.c : DRMS
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id: drms.c,v 1.
3 2004/01/09 13:08:08 hartman
Exp $
* $Id: drms.c,v 1.
4 2004/01/09 17:29:17 jlj
Exp $
*
* Author: Jon Lech Johansen <jon-vl@nanocrew.net>
*
...
...
@@ -606,8 +606,26 @@ static int get_sci_data( uint32_t **pp_sci, uint32_t *p_sci_size )
TCHAR
p_path
[
PATH_MAX
];
TCHAR
*
p_filename
=
_T
(
"
\\
Apple Computer
\\
iTunes
\\
SC Info
\\
SC Info.sidb"
);
if
(
SUCCEEDED
(
SHGetFolderPath
(
NULL
,
CSIDL_COMMON_APPDATA
,
NULL
,
0
,
p_path
)
)
)
typedef
HRESULT
(
WINAPI
*
SHGETFOLDERPATH
)(
HWND
,
int
,
HANDLE
,
DWORD
,
LPTSTR
);
HINSTANCE
shfolder_dll
=
NULL
;
SHGETFOLDERPATH
dSHGetFolderPath
=
NULL
;
if
(
(
shfolder_dll
=
LoadLibrary
(
_T
(
"SHFolder.dll"
)
)
)
!=
NULL
)
{
dSHGetFolderPath
=
(
SHGETFOLDERPATH
)
GetProcAddress
(
shfolder_dll
,
#ifdef _UNICODE
_T
(
"SHGetFolderPathW"
)
);
#else
_T
(
"SHGetFolderPathA"
)
);
#endif
}
if
(
dSHGetFolderPath
!=
NULL
&&
SUCCEEDED
(
dSHGetFolderPath
(
NULL
,
CSIDL_COMMON_APPDATA
,
NULL
,
0
,
p_path
)
)
)
{
_tcsncat
(
p_path
,
p_filename
,
min
(
_tcslen
(
p_filename
),
(
PATH_MAX
-
1
)
-
_tcslen
(
p_path
)
)
);
...
...
@@ -640,6 +658,11 @@ static int get_sci_data( uint32_t **pp_sci, uint32_t *p_sci_size )
CloseHandle
(
i_file
);
}
}
if
(
shfolder_dll
!=
NULL
)
{
FreeLibrary
(
shfolder_dll
);
}
#endif
return
(
i_ret
);
...
...
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