mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08:00
mp_msg: fixes windows code that assumes sizeof(DWORD) == sizeof(long)
This commit is contained in:
committed by
wm4
parent
bb5bad5ab7
commit
1652d3689c
+1
-1
@@ -77,7 +77,7 @@ static int mp_msg_docolor(void) {
|
||||
void mp_msg_init(void){
|
||||
#ifdef _WIN32
|
||||
CONSOLE_SCREEN_BUFFER_INFO cinfo;
|
||||
long cmode = 0;
|
||||
DWORD cmode = 0;
|
||||
GetConsoleMode(hSTDOUT, &cmode);
|
||||
cmode |= (ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT);
|
||||
SetConsoleMode(hSTDOUT, cmode);
|
||||
|
||||
Reference in New Issue
Block a user