Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor code quality improvements to fix in relation to #412 #414

Closed
wants to merge 6 commits into from
Closed

Minor code quality improvements to fix in relation to #412 #414

wants to merge 6 commits into from

Conversation

vletoux
Copy link
Contributor

@vletoux vletoux commented Mar 29, 2015

Hi,

As requested here my contribution to fix a few code analysis warnings.
Indeed, it is difficult to test it but the modifications are minor and they may be checked using a code review.

regards,
Vincent LE TOUX

UNICODE is set by default by Visual Studio (but can be deactived)

The trick is to force ANSI version by appending a A to the function calls.
…_NUMBER)

Fix the WCHAR / CHAR conversion problem in CardAuthenticateEx in case of PinPAD (vs->wzPinContext is UNICODE)
Fix UNICODE compilation problem( MessageBoxA instead of MessageBox)
Basically checks that the memory allocation succeed.

The ctbcs.c change improve the readability
because count = 0 and len > 254 does not add any value.
Conflicts:
	src/minidriver/minidriver.c
@vletoux
Copy link
Contributor Author

vletoux commented Mar 29, 2015

The Travis compilation failed like yesterday (without a compilation error). I'll wait a few hours and do a commit to force a recompilation as suggested by Frank.

@frankmorgner
Copy link
Member

looks good, thank you.

@frankmorgner
Copy link
Member

I'm waiting for a second opinion, especially on the conflict resolution for the minidriver (which I can't test).

@dengert
Copy link
Member

dengert commented Apr 4, 2015

See @viktorTarasov comments on #426

@viktorTarasov
Copy link
Member

MD changes shortly tested (certutil, generate key, import cert, authentication in IE) on Vista 32 bit.

Applied in 8ea328f,
thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants