This is 3rd party code. Can you surround it with #ifdef __REACTOS__?

Le 01/04/2019 à 17:08, Hervé Poussineau a écrit :
> https://git.reactos.org/?p=reactos.git;a=commitdiff;h=76910c358f7197a6b8e283ea267faf7b5c1812ff
> 
> commit 76910c358f7197a6b8e283ea267faf7b5c1812ff
> Author:     Hervé Poussineau <hpous...@reactos.org>
> AuthorDate: Sat Mar 30 23:06:27 2019 +0100
> Commit:     Hervé Poussineau <hpous...@reactos.org>
> CommitDate: Mon Apr 1 11:38:32 2019 +0200
> 
>     [EXT2] Correctly zero memory before using it
> ---
>  drivers/filesystems/ext2/src/memory.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/filesystems/ext2/src/memory.c 
> b/drivers/filesystems/ext2/src/memory.c
> index 8915dfeccb..cf569f40cd 100644
> --- a/drivers/filesystems/ext2/src/memory.c
> +++ b/drivers/filesystems/ext2/src/memory.c
> @@ -2072,9 +2072,9 @@ Ext2ParseRegistryVolumeParams(
>  
>      USHORT i, j, k;
>  
> -    RtlZeroMemory(Codepage, CODEPAGE_MAXLEN);
> -    RtlZeroMemory(Prefix, HIDINGPAT_LEN);
> -    RtlZeroMemory(Suffix, HIDINGPAT_LEN);
> +    RtlZeroMemory(Codepage, sizeof(WCHAR) * CODEPAGE_MAXLEN);
> +    RtlZeroMemory(Prefix, sizeof(WCHAR) * HIDINGPAT_LEN);
> +    RtlZeroMemory(Suffix, sizeof(WCHAR) * HIDINGPAT_LEN);
>      RtlZeroMemory(MountPoint, sizeof(USHORT) * 4);
>      RtlZeroMemory(DrvLetter, sizeof(CHAR) * 4);
>  
> 


-- 
Pierre Schweitzer <pierre at reactos.org>
System & Network Administrator
Senior Kernel Developer
ReactOS Deutschland e.V.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Ros-dev mailing list
Ros-dev@reactos.org
http://reactos.org/mailman/listinfo/ros-dev

Reply via email to