Commit de239d86 authored by Nathan Gallaher's avatar Nathan Gallaher Committed by Alexandre Julliard

ole32: Fix invalid memory access in storage32.

parent 910b1915
...@@ -2280,9 +2280,7 @@ static HRESULT StorageImpl_Construct( ...@@ -2280,9 +2280,7 @@ static HRESULT StorageImpl_Construct(
goto end; goto end;
} }
strcpyW(This->pwcsName, pwcsName); strcpyW(This->pwcsName, pwcsName);
lstrcpynW(This->base.filename, pwcsName, DIRENTRY_NAME_BUFFER_LEN);
memcpy(This->base.filename, pwcsName, DIRENTRY_NAME_BUFFER_LEN-1);
This->base.filename[DIRENTRY_NAME_BUFFER_LEN-1] = 0;
} }
/* /*
......
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