File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4747#include " device_interface.h"
4848#include " gpu_context_common.h"
4949#include " printer.h"
50+ #include " runtime_atomics.h"
5051#include " scoped_mutex_lock.h"
5152
5253#if !defined(INITGUID)
@@ -2027,8 +2028,9 @@ WEAK bool D3D12LoadDXC(void *uc) {
20272028
20282029 // Build full path: <exe_dir>\dxcompiler.dll
20292030 constexpr const char dll_name[] = " dxcompiler.dll" ;
2030- char path[MAX_PATH];
2031- static_assert (MAX_PATH > sizeof (dll_name), " path buffer too small" );
2031+ constexpr size_t kMaxPath = 4096 ;
2032+ char path[kMaxPath ];
2033+ static_assert (kMaxPath > sizeof (dll_name), " path buffer too small" );
20322034
20332035 DWORD n = GetModuleFileNameA (nullptr , path, sizeof (path));
20342036 if (n > 0 && n < sizeof (path)) {
You can’t perform that action at this time.
0 commit comments