Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
48eb86c6
Commit
48eb86c6
authored
Nov 11, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DRMS: use Unicode Win32 API
parent
b8f4ee2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
modules/demux/mp4/drms.c
modules/demux/mp4/drms.c
+13
-8
No files found.
modules/demux/mp4/drms.c
View file @
48eb86c6
...
@@ -1779,30 +1779,35 @@ static int GetSCIData( char *psz_ipod, uint32_t **pp_sci,
...
@@ -1779,30 +1779,35 @@ static int GetSCIData( char *psz_ipod, uint32_t **pp_sci,
if
(
psz_ipod
==
NULL
)
if
(
psz_ipod
==
NULL
)
{
{
#ifdef WIN32
#ifdef WIN32
char
*
p_filename
=
"
\\
Apple Computer
\\
iTunes
\\
SC Info
\\
SC Info.sidb"
;
const
wchar_t
*
wfile
=
L"
\\
Apple Computer
\\
iTunes
\\
SC Info
\\
SC Info.sidb"
;
typedef
HRESULT
(
WINAPI
*
SHGETFOLDERPATH
)(
HWND
,
int
,
HANDLE
,
DWORD
,
typedef
HRESULT
(
WINAPI
*
SHGETFOLDERPATH
)(
HWND
,
int
,
HANDLE
,
DWORD
,
LPSTR
);
LP
W
STR
);
HINSTANCE
shfolder_dll
=
NULL
;
HINSTANCE
shfolder_dll
=
NULL
;
SHGETFOLDERPATH
dSHGetFolderPath
=
NULL
;
SHGETFOLDERPATH
dSHGetFolderPath
=
NULL
;
wchar_t
wpath
[
PATH_MAX
];
if
(
(
shfolder_dll
=
LoadLibrary
(
_T
(
"SHFolder.dll"
)
)
)
!=
NULL
)
if
(
(
shfolder_dll
=
LoadLibrary
(
_T
(
"SHFolder.dll"
)
)
)
!=
NULL
)
{
{
dSHGetFolderPath
=
dSHGetFolderPath
=
(
SHGETFOLDERPATH
)
GetProcAddress
(
shfolder_dll
,
(
SHGETFOLDERPATH
)
GetProcAddress
(
shfolder_dll
,
_T
(
"SHGetFolderPath
A
"
)
);
_T
(
"SHGetFolderPath
W
"
)
);
}
}
if
(
dSHGetFolderPath
!=
NULL
&&
if
(
dSHGetFolderPath
!=
NULL
&&
SUCCEEDED
(
dSHGetFolderPath
(
NULL
,
CSIDL_COMMON_APPDATA
,
SUCCEEDED
(
dSHGetFolderPath
(
NULL
,
CSIDL_COMMON_APPDATA
,
NULL
,
0
,
p_tmp
)
)
)
NULL
,
0
,
wpath
)
)
)
{
{
strncat
(
p_tmp
,
p_filename
,
min
(
strlen
(
p_filename
),
if
(
wcslen
(
wpath
)
+
wcslen
(
wfile
)
>=
PATH_MAX
)
(
sizeof
(
p_tmp
)
-
1
)
-
strlen
(
p_tmp
)
)
);
{
return
-
1
;
}
wcscat
(
wpath
,
wfile
);
psz_path
=
From
Locale
(
p_tmp
);
psz_path
=
From
Wide
(
wpath
);
strncpy
(
p_tmp
,
psz_path
,
sizeof
(
p_tmp
)
-
1
);
strncpy
(
p_tmp
,
psz_path
,
sizeof
(
p_tmp
)
-
1
);
p_tmp
[
sizeof
(
p_tmp
)
-
1
]
=
'\0'
;
p_tmp
[
sizeof
(
p_tmp
)
-
1
]
=
'\0'
;
LocaleF
ree
(
psz_path
);
f
ree
(
psz_path
);
psz_path
=
p_tmp
;
psz_path
=
p_tmp
;
}
}
...
...
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