Skip to content

Commit 1612482

Browse files
committed
Addressed a couple of coding errors
1 parent 4cea8a5 commit 1612482

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

listeners/GPII_RFIDListener/src/GPII_RFIDListener.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ static int m_nLogin = 0;
110110
static ATOM MyRegisterClass(HINSTANCE hInstance);
111111
static BOOL MyTrayIcon(HWND hWnd);
112112
static BOOL MyPopupMenu(HWND hWnd);
113-
static BOOL InitInstance(HINSTANCE);
113+
static BOOL InitInstance(HINSTANCE;)
114114
static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
115115

116116
///////////////////////////////////////////////////////////////////////////////
@@ -136,7 +136,7 @@ int APIENTRY WinMain(HINSTANCE hInstance,
136136
//-----------------------------------------------------
137137
// Initialize global variables
138138
//-----------------------------------------------------
139-
wsprintf(m_szUserID,"%s",L"");
139+
wsprintf(m_szUserID,"%s","");
140140
wsprintf(m_szReader,"%s",lpCmdLine);
141141
wsprintf(m_szStatus,"%s","Listening...");
142142

listeners/GPII_RFIDListener/src/WinSmartCard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ int _WinSmartCardInitialize(HWND hWnd, const char* szReader)
772772
if (lstrlen(szReader))
773773
{
774774
m_nReaderIndex = -1;
775-
char *p = pmszReaderList;
775+
char *p = pmszReaderList; // FIXME p could be NULL which would break lstrlen
776776
while ( *p )
777777
{
778778
nLen = lstrlen(p) + 1; //FIXME: ugh!

0 commit comments

Comments
 (0)