From 51657e10769faa2617d546a06c42e4c62a19bb50 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 30 Jan 2022 17:41:24 +0100 Subject: Removed trailing whitespace all over the place --- Stars45/NPClientWraps.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Stars45/NPClientWraps.cpp') diff --git a/Stars45/NPClientWraps.cpp b/Stars45/NPClientWraps.cpp index e4ba0f4..ffdfe14 100644 --- a/Stars45/NPClientWraps.cpp +++ b/Stars45/NPClientWraps.cpp @@ -201,7 +201,7 @@ NPRESULT NPClient_Init( const char* csDLLPath ) csNPClientDLLFullPath += "NPClient.dll"; ghNPClientDLL = ::LoadLibrary( csNPClientDLLFullPath.data() ); - + if (NULL != ghNPClientDLL) { // verify the dll signature gpfNP_GetSignature = (PF_NP_GETSIGNATURE)::GetProcAddress( ghNPClientDLL, "NP_GetSignature" ); @@ -215,10 +215,10 @@ NPRESULT NPClient_Init( const char* csDLLPath ) NPRESULT vresult = NP_GetSignature( &pSignature ); if( vresult == NP_OK ) { - if ((strcmp(verifySignature.DllSignature,pSignature.DllSignature)==0) + if ((strcmp(verifySignature.DllSignature,pSignature.DllSignature)==0) && (strcmp(verifySignature.AppSignature,pSignature.AppSignature)==0)) - { - result = NP_OK; + { + result = NP_OK; // Get addresses of all exported functions gpfNP_RegisterWindowHandle = (PF_NP_REGISTERWINDOWHANDLE)::GetProcAddress( ghNPClientDLL, "NP_RegisterWindowHandle" ); @@ -234,13 +234,13 @@ NPRESULT NPClient_Init( const char* csDLLPath ) gpfNP_StopDataTransmission = (PF_NP_STOPDATATRANSMISSION)::GetProcAddress( ghNPClientDLL, "NP_StopDataTransmission" ); } else - { - result = NP_ERR_DLL_NOT_FOUND; + { + result = NP_ERR_DLL_NOT_FOUND; } } else { - result = NP_ERR_DLL_NOT_FOUND; + result = NP_ERR_DLL_NOT_FOUND; } } else -- cgit v1.1