Removed no longer used extra space allocated in the modref structure.
This commit is contained in:
parent
ccff458669
commit
0382aead65
|
@ -499,11 +499,8 @@ static WINE_MODREF *alloc_module( HMODULE hModule, LPCWSTR filename )
|
||||||
WCHAR *p;
|
WCHAR *p;
|
||||||
IMAGE_NT_HEADERS *nt = RtlImageNtHeader(hModule);
|
IMAGE_NT_HEADERS *nt = RtlImageNtHeader(hModule);
|
||||||
PLIST_ENTRY entry, mark;
|
PLIST_ENTRY entry, mark;
|
||||||
DWORD len;
|
|
||||||
|
|
||||||
RtlUnicodeToMultiByteSize( &len, filename, (strlenW(filename) + 1) * sizeof(WCHAR) );
|
if (!(wm = RtlAllocateHeap( GetProcessHeap(), 0, sizeof(*wm) ))) return NULL;
|
||||||
if (!(wm = RtlAllocateHeap( GetProcessHeap(), 0, sizeof(*wm) + len )))
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
wm->nDeps = 0;
|
wm->nDeps = 0;
|
||||||
wm->deps = NULL;
|
wm->deps = NULL;
|
||||||
|
|
Loading…
Reference in New Issue