Commit beeeb2a5 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

ntdll: Avoid path buffer re-allocation step for common dll name lengths.

For instance c:\windows\system32\advapi32.dll is 33 characters long with 0-terminator. Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 062aa59d
......@@ -2208,7 +2208,7 @@ overflow:
static NTSTATUS load_dll( LPCWSTR load_path, LPCWSTR libname, DWORD flags, WINE_MODREF** pwm )
{
enum loadorder loadorder;
WCHAR buffer[32];
WCHAR buffer[64];
WCHAR *filename;
ULONG size;
WINE_MODREF *main_exe;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment