mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
win32: revert wchar_t changes
Revert "win32: more wchar_t -> WCHAR replacements" Revert "win32: replace wchar_t with WCHAR" Doing a "partial" port of this makes no sense anymore from my perspective. Revert the changes, as they're confusing without context, maintenance, and progress. These changes were a bit premature anyway, and might actually cause other issues (locale neutrality etc. as it was pointed out).
This commit is contained in:
@@ -31,7 +31,7 @@ static char *portable_path;
|
||||
|
||||
static char *mp_get_win_exe_dir(void *talloc_ctx)
|
||||
{
|
||||
WCHAR w_exedir[MAX_PATH + 1] = {0};
|
||||
wchar_t w_exedir[MAX_PATH + 1] = {0};
|
||||
|
||||
int len = (int)GetModuleFileNameW(NULL, w_exedir, MAX_PATH);
|
||||
int imax = 0;
|
||||
@@ -54,7 +54,7 @@ static char *mp_get_win_exe_subdir(void *ta_ctx, const char *name)
|
||||
|
||||
static char *mp_get_win_shell_dir(void *talloc_ctx, int folder)
|
||||
{
|
||||
WCHAR w_appdir[MAX_PATH + 1] = {0};
|
||||
wchar_t w_appdir[MAX_PATH + 1] = {0};
|
||||
|
||||
if (SHGetFolderPathW(NULL, folder|CSIDL_FLAG_CREATE, NULL,
|
||||
SHGFP_TYPE_CURRENT, w_appdir) != S_OK)
|
||||
|
||||
Reference in New Issue
Block a user