Description
Software tested: VLC 3.0.X but it is reproducible even in the oldest VLC 2.0.1 ver.
 ReactOS version: bootcd-0.4.15-dev-4427-g4bcf23d with this patch proposed by learn_more to jump the _wfindfirst64
 Arch: 64 bits
 Compiler: MSVC
Steps to reproduce: 
 1. Install ReactOS 64 bits and open VLC.exe.
 2. The software will crash after splashing the first start Privacy preference dialog. We will get a BSOD. 
Debuglog: VLC64bits - after first.txt![]()
It's a long one. Have exceptions and next a BSOD. The VLC debug comments are in the log too.
					(dll\ntdll\ldr\ldrinit.c:1683) LdrpInitializeProcessCompat: Found guid for winver 0x600 in manifest from D:\vlc-3.0.16-win64\vlc.exe  | 
		
					main libvlc debug: VLC media player - 3.0.16 Vetinari  | 
		
					main libvlc debug: Copyright © 1996-2021 the VideoLAN team  | 
		
					main libvlc debug: revision 3.0.16-0-g5e70837d8d  | 
		
					main libvlc debug: configured with /home/jenkins/workspace/vlc-release/windows/vlc-release-win32-x64/extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-shout' '--enable-goom' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-nls' '--host=x86_64-w64-mingw32' '--with-contrib=../contrib/x86_64-w64-mingw32' '--with-breakpad=https://win.crashes.videolan.org' '--enable-qt' '--enable-skins2' '--enable-dvdread' '--enable-caca' 'host_alias=x86_64-w64-mingw32' 'CFLAGS= ' 'CXXFLAGS= ' 'PKG_CONFIG=pkg-config' 'PKG_CONFIG_LIBDIR=/usr/x86_64-w64-mingw32/lib/pkgconfig:/usr/lib/x86_64-w64-mingw32/pkgconfig'  | 
		
					main libvlc debug: using multimedia timers as clock source
			 | 
		
					main libvlc debug: min period: 1 ms, max period: 65535 ms  | 
		
					main libvlc debug: searching plug-in modules
			 | 
		
					main libvlc debug: loading plugins cache file D:\vlc-3.0.16-win64\plugins\plugins.dat  | 
		
					main libvlc warning: cannot read D:\vlc-3.0.16-win64\plugins\plugins.dat: No such file or directory (ENOENT)  | 
		
					main libvlc debug: recursively browsing `D:\vlc-3.0.16-win64\plugins'  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(ncrypt.dll) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\ntdll\ldr\ldrpe.c:1047) Failed to snap msvcrt.dll!strtok_s for liblibbluray_plugin.dll  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(D:\vlc-3.0.16-win64\plugins\access\liblibbluray_plugin.dll) failing with status c0000139  | 
		
					main libvlc warning: cannot load module `D:\vlc-3.0.16-win64\plugins\access\liblibbluray_plugin.dll' (The specified procedure could not be found. (error 127))  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(ncrypt.dll) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(ncrypt.dll) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\ntdll\ldr\ldrpe.c:1047) Failed to snap KERNEL32.dll!InitializeConditionVariable for libmmdevice_plugin.dll  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(D:\vlc-3.0.16-win64\plugins\audio_output\libmmdevice_plugin.dll) failing with status c0000139  | 
		
					main libvlc warning: cannot load module `D:\vlc-3.0.16-win64\plugins\audio_output\libmmdevice_plugin.dll' (The specified procedure could not be found. (error 127))  | 
		
					(dll\ntdll\ldr\ldrpe.c:1047) Failed to snap KERNEL32.dll!InitOnceExecuteOnce for libwasapi_plugin.dll  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(D:\vlc-3.0.16-win64\plugins\audio_output\libwasapi_plugin.dll) failing with status c0000139  | 
		
					main libvlc warning: cannot load module `D:\vlc-3.0.16-win64\plugins\audio_output\libwasapi_plugin.dll' (The specified procedure could not be found. (error 127))  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\ntdll\ldr\ldrpe.c:1047) Failed to snap KERNEL32.dll!CreateMutexExW for libd3d11va_plugin.dll  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(D:\vlc-3.0.16-win64\plugins\codec\libd3d11va_plugin.dll) failing with status c0000139  | 
		
					main libvlc warning: cannot load module `D:\vlc-3.0.16-win64\plugins\codec\libd3d11va_plugin.dll' (The specified procedure could not be found. (error 127))  | 
		
					(dll\ntdll\ldr\ldrpe.c:1047) Failed to snap KERNEL32.dll!AcquireSRWLockExclusive for libdav1d_plugin.dll  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(D:\vlc-3.0.16-win64\plugins\codec\libdav1d_plugin.dll) failing with status c0000139  | 
		
					main libvlc warning: cannot load module `D:\vlc-3.0.16-win64\plugins\codec\libdav1d_plugin.dll' (The specified procedure could not be found. (error 127))  | 
		
					(dll\ntdll\ldr\ldrpe.c:1047) Failed to snap msvcrt.dll!_wfopen_s for libqsv_plugin.dll  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(D:\vlc-3.0.16-win64\plugins\codec\libqsv_plugin.dll) failing with status c0000139  | 
		
					main libvlc warning: cannot load module `D:\vlc-3.0.16-win64\plugins\codec\libqsv_plugin.dll' (The specified procedure could not be found. (error 127))  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\ntdll\ldr\ldrpe.c:1047) Failed to snap KERNEL32.dll!GetNumaNodeProcessorMaskEx for libx265_plugin.dll  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(D:\vlc-3.0.16-win64\plugins\codec\libx265_plugin.dll) failing with status c0000139  | 
		
					main libvlc warning: cannot load module `D:\vlc-3.0.16-win64\plugins\codec\libx265_plugin.dll' (The specified procedure could not be found. (error 127))  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\ntdll\ldr\ldrpe.c:1047) Failed to snap KERNEL32.dll!CreateMutexExW for libdirect3d11_filters_plugin.dll  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(D:\vlc-3.0.16-win64\plugins\d3d11\libdirect3d11_filters_plugin.dll) failing with status c0000139  | 
		
					main libvlc warning: cannot load module `D:\vlc-3.0.16-win64\plugins\d3d11\libdirect3d11_filters_plugin.dll' (The specified procedure could not be found. (error 127))  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(ncrypt.dll) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\ntdll\ldr\ldrpe.c:1047) Failed to snap KERNEL32.dll!CreateMutexExW for libdirect3d11_plugin.dll  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(D:\vlc-3.0.16-win64\plugins\video_output\libdirect3d11_plugin.dll) failing with status c0000139  | 
		
					main libvlc warning: cannot load module `D:\vlc-3.0.16-win64\plugins\video_output\libdirect3d11_plugin.dll' (The specified procedure could not be found. (error 127))  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\QUSEREX.DLL) failing with status c0000135  | 
		
					main libvlc debug: plug-ins loaded: 483 modules  | 
		
					main libvlc debug: opening config file (C:\Documents and Settings\Administrator\Application Data\vlc\vlcrc)
			 | 
		
					main logger debug: looking for logger module matching "any": 2 candidates  | 
		
					main logger debug: using logger module "console"  | 
		
					main libvlc debug: translation test: code is "C"  | 
		
					main keystore debug: looking for keystore module matching "memory": 3 candidates  | 
		
					main keystore debug: using keystore module "memory"  | 
		
					main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU  | 
		
					main playlist debug: creating audio output
			 | 
		
					main audio output debug: looking for audio output module matching "any": 5 candidates  | 
		
					directsound audio output debug: found 1 devices  | 
		
					main audio output debug: using audio output module "directsound"  | 
		
					main playlist debug: keeping audio output
			 | 
		
					main interface debug: looking for interface module matching "hotkeys,none": 16 candidates  | 
		
					main interface debug: using interface module "hotkeys"  | 
		
					main interface debug: looking for interface module matching "globalhotkeys,none": 16 candidates  | 
		
					main interface debug: using interface module "win32"  | 
		
					main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.  | 
		
					main interface debug: looking for interface module matching "any": 16 candidates  | 
		
					(dll\win32\kernel32\client\loader.c:386) LoadLibraryExW(C:\ReactOS\System32\wintab32.dll) failing with status c0000135  | 
		
					qt interface debug: Boring first Run Wizard  | 
		
					main generic debug: looking for extension module matching "any": 1 candidates  | 
		
					lua generic debug: Opening Lua Extension module
			 | 
		
					lua generic debug: Trying Lua scripts in C:\Documents and Settings\Administrator\Application Data\vlc\lua\extensions
			 | 
		
					lua generic debug: Trying Lua scripts in D:\vlc-3.0.16-win64\lua\extensions  | 
		
					lua generic debug: Trying Lua playlist script D:\vlc-3.0.16-win64\lua\extensions\VLSub.luac  | 
		
					lua generic debug: Scanning Lua script D:\vlc-3.0.16-win64\lua\extensions\VLSub.luac  | 
		
					lua generic debug: Script D:\vlc-3.0.16-win64\lua\extensions\VLSub.luac has the following capability flags: 0x5  | 
		
					main generic debug: using extension module "lua"  | 
		
					Break instruction exception - code 80000003 (first chance)  | 
		
					0033:000007ff`b552cdc2 cc int 3  | 
		
					kd> kp
			 | 
		
					 # Child-SP          RetAddr               Call Site
			 | 
		
					00 00000000`0b3bf578 00000000`0779b21f 0x000007ff`b552cdc2  | 
		
					01 00000000`0b3bf580 000007ff`fffd5000 0x779b21f  | 
		
					02 00000000`0b3bf588 00000000`07df1bb8 0x000007ff`fffd5000  | 
		
					03 00000000`0b3bf590 00000000`0b3bf5f0 0x7df1bb8  | 
		
					04 00000000`0b3bf598 00000000`07df1b40 0xb3bf5f0  | 
		
					05 00000000`0b3bf5a0 00000000`0ab2c740 0x7df1b40  | 
		
					06 00000000`0b3bf5a8 00000000`0b3bf980 0xab2c740  | 
		
					07 00000000`0b3bf5b0 00000000`00000000 0xb3bf980  | 
		
					kd> gn
			 | 
		
					Unhandled exception
			 | 
		
					ExceptionCode: 80000003  | 
		
					CS:RIP 33:0  | 
		
					DS 2b ES 2b FS 53 GS 2b  | 
		
					RAX: 0 RBX: 0 RCX: b3bf928 RDI: 0  | 
		
					RDX: 3 RBP: 0 RSI: 0 RSP: b3bffe0  | 
		
					R8: 2 R9: b3bf768 R10: 2c R11: 2e  | 
		
					R12: 0 R13: 0 R14: 0 R15: 0  | 
		
					EFLAGS: 00000202  | 
		
					Address:
			 | 
		
					<msvcrt.dll:2cdc3> (C:\ReactOS\system32\msvcrt.dll@b5500000)  |