Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
0f20b435
Commit
0f20b435
authored
Jul 24, 2017
by
Ghislain MARY
Browse files
Fix build on Windows.
parent
7ceddff0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
coreapi/sqlite3_bctbx_vfs.c
coreapi/sqlite3_bctbx_vfs.c
+2
-2
No files found.
coreapi/sqlite3_bctbx_vfs.c
View file @
0f20b435
...
...
@@ -262,7 +262,7 @@ static char* ConvertFromUtf8Filename(const char* fName){
nChar
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
fName
,
-
1
,
NULL
,
0
);
if
(
nChar
==
0
)
return
NULL
;
wideFilename
=
bctbx_malloc
(
nChar
*
sizeof
(
wideFilename
[
0
]));
wideFilename
=
reinterpret_cast
<
LPWSTR
>
(
bctbx_malloc
(
nChar
*
sizeof
(
wideFilename
[
0
]))
)
;
if
(
wideFilename
==
NULL
)
return
NULL
;
nChar
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
fName
,
-
1
,
wideFilename
,
nChar
);
if
(
nChar
==
0
)
{
...
...
@@ -272,7 +272,7 @@ static char* ConvertFromUtf8Filename(const char* fName){
nb_byte
=
WideCharToMultiByte
(
CP_ACP
,
0
,
wideFilename
,
-
1
,
0
,
0
,
0
,
0
);
if
(
nb_byte
==
0
)
return
NULL
;
convertedFilename
=
bctbx_malloc
(
nb_byte
);
convertedFilename
=
reinterpret_cast
<
char
*>
(
bctbx_malloc
(
nb_byte
)
)
;
if
(
convertedFilename
==
NULL
)
return
NULL
;
nb_byte
=
WideCharToMultiByte
(
CP_ACP
,
0
,
wideFilename
,
-
1
,
convertedFilename
,
nb_byte
,
0
,
0
);
if
(
nb_byte
==
0
)
{
...
...
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