diff options
-rw-r--r-- | shell/source/win32/shlxthandler/shlxthdl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/win32/shlxthandler/shlxthdl.cxx b/shell/source/win32/shlxthandler/shlxthdl.cxx index 9a5b8a37917c..13f687ad5a6b 100644 --- a/shell/source/win32/shlxthandler/shlxthdl.cxx +++ b/shell/source/win32/shlxthandler/shlxthdl.cxx @@ -300,12 +300,12 @@ namespace /* private */ STDAPI DllRegisterServer() { - WCHAR ModuleFileName[MAX_PATH]; + WCHAR ModuleFileName[32767]; GetModuleFileNameW( GetCurrentModuleHandle(), ModuleFileName, - sizeof(ModuleFileName)/sizeof(ModuleFileName[0])); + std::size(ModuleFileName)); HRESULT hr = S_OK; |