<p>It seems that there is a type mismatch on 2nd argument here (and same further in code): because we currently use <code>CertOpenSystemStoreA</code> rather than <code>CertOpenSystemStoreW</code> and the compiler does warn us:</p>
<pre><code>../../platforms/win32/plugins/SqueakSSL/sqWin32SSL.c:176:35: warning: incompatible pointer types passing 'unsigned short [3]' to parameter of type 'LPCSTR' (aka 'const char *') [-Wincompatible-pointer-types]
                hStore = CertOpenSystemStore(0, L"MY");
                                                ^~~~~
/usr/x86_64-w64-mingw32/sys-root/mingw/include/wincrypt.h:4432:83: note: passing argument to parameter 'szSubsystemProtocol' here
  WINIMPM HCERTSTORE WINAPI CertOpenSystemStoreA (HCRYPTPROV_LEGACY hProv, LPCSTR szSubsystemProtocol);
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/b2268f0d9af6907b3b913cae1251bef63d4ffe53#commitcomment-31635660">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AhLyW9_hQZDdu58PgpfCRCfhNRp8sbCtks5u37SAgaJpZM4ZNa2P">mute the thread</a>.<img src="https://github.com/notifications/beacon/AhLyW2XWv602i-OEezXkw-ouGsuJUcU3ks5u37SAgaJpZM4ZNa2P.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@nicolas-cellier-aka-nice on b2268f0: It seems that there is a type mismatch on 2nd argument here (and same further in code): because we currently use `CertOpenSystemStoreA` rather than `CertOpenSystemStoreW` and the compiler does warn us:\r\n\r\n    ../../platforms/win32/plugins/SqueakSSL/sqWin32SSL.c:176:35: warning: incompatible pointer types passing 'unsigned short [3]' to parameter of type 'LPCSTR' (aka 'const char *') [-Wincompatible-pointer-types]\r\n                    hStore = CertOpenSystemStore(0, L\"MY\");\r\n                                                    ^~~~~\r\n    /usr/x86_64-w64-mingw32/sys-root/mingw/include/wincrypt.h:4432:83: note: passing argument to parameter 'szSubsystemProtocol' here\r\n      WINIMPM HCERTSTORE WINAPI CertOpenSystemStoreA (HCRYPTPROV_LEGACY hProv, LPCSTR szSubsystemProtocol);\r\n"}],"action":{"name":"View Commit","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/b2268f0d9af6907b3b913cae1251bef63d4ffe53#commitcomment-31635660"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/b2268f0d9af6907b3b913cae1251bef63d4ffe53#commitcomment-31635660",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/b2268f0d9af6907b3b913cae1251bef63d4ffe53#commitcomment-31635660",
"name": "View Commit"
},
"description": "View this Commit on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>