[PATCH] cryptnet/tests: Change the scope of a variable from global to local.
Michael Stefaniuc
mstefani at winehq.org
Thu Oct 22 05:45:59 CDT 2020
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
Avoids functions further down in the file to mask the global 'url'
variable.
And of course not const due to the API...
dlls/cryptnet/tests/cryptnet.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/cryptnet/tests/cryptnet.c b/dlls/cryptnet/tests/cryptnet.c
index 0b017604c04..3eca9e43f2e 100644
--- a/dlls/cryptnet/tests/cryptnet.c
+++ b/dlls/cryptnet/tests/cryptnet.c
@@ -99,11 +99,10 @@ static void compareUrlArray(const CRYPT_URL_ARRAY *expected,
}
}
-static WCHAR url[] =
- { 'h','t','t','p',':','/','/','w','i','n','e','h','q','.','o','r','g',0 };
static void test_getObjectUrl(void)
{
+ static WCHAR url[] = L"http://winehq.org";
BOOL ret;
DWORD urlArraySize = 0, infoSize = 0;
PCCERT_CONTEXT cert;
--
2.26.2
More information about the wine-devel
mailing list