X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fboot%2Ffreeldr%2Ffreeldr%2Freactos%2Fregistry.c;h=92e09541ef366922f0367ae28e8b2ff237cd4731;hp=ada49a23d4f646bb04be1b109f5108d80f5779d1;hb=2859b116ca9e9bf4e9af1f9f1a496e45a4ff95bd;hpb=7737b1bf174e8edae1f14d5f33e453c77dcd7616;ds=sidebyside diff --git a/reactos/boot/freeldr/freeldr/reactos/registry.c b/reactos/boot/freeldr/freeldr/reactos/registry.c index ada49a23d4f..92e09541ef3 100644 --- a/reactos/boot/freeldr/freeldr/reactos/registry.c +++ b/reactos/boot/freeldr/freeldr/reactos/registry.c @@ -31,6 +31,7 @@ RegInitializeRegistry (VOID) { #if 0 FRLDRHKEY TestKey; + WCHAR szTestString[] = L"TestString"; #endif /* Create root key */ @@ -85,8 +86,8 @@ RegInitializeRegistry (VOID) RegSetValue (TestKey, L"TestValue", REG_SZ, - (PUCHAR)"TestString", - 11); + szTestString, + sizeof(szTestString)); #endif }