From: Eric K. <ek...@rz...> - 2002-07-05 00:10:43
|
"Royce Mitchell III" <ro...@ev...> wrote: > I've fixed RtlSetEnvironmentVariable, but at the moment the fix is using a > static buffer. Can I safely call palloc from that function? Once I get that > straightened out, I'll pass it on. You should use RtlAllocateHeap(RtlGetProcessHeap(), 0, <BufferSize>) to allocate a buffer in ntdll.dll. C-runtime heap functions like malloc(), calloc(), free(), etc. are *not* available in ntdll.dll. > I have also discovered a bug in RtlExpandEnvironmentStrings_U in the > process. Great! Can you send me the patch (unified diff format preferred)? I'll apply it to the cvs tree. Thanks, Eric Kohl |