From 8d6db0ca1e2fc054bd666cf257c68edc3a86901f Mon Sep 17 00:00:00 2001 From: dgis Date: Thu, 7 Feb 2019 21:52:36 +0000 Subject: [PATCH] --- app/src/main/cpp/win32-layer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/win32-layer.c b/app/src/main/cpp/win32-layer.c index 10590f9..33bd968 100644 --- a/app/src/main/cpp/win32-layer.c +++ b/app/src/main/cpp/win32-layer.c @@ -83,8 +83,8 @@ HANDLE CreateFile(LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, } if(chooseCurrentKmlMode == ChooseKmlMode_FILE_OPEN && lpFileName[0] == '/') { TCHAR * fileExtension = _tcsrchr(lpFileName, _T('.')); - if(fileExtension && ((fileExtension[0] == 'K' && fileExtension[1] == 'M' && fileExtension[2] == 'L') || - (fileExtension[0] == 'k' && fileExtension[1] == 'm' && fileExtension[2] == 'l') + if(fileExtension && ((fileExtension[1] == 'K' && fileExtension[2] == 'M' && fileExtension[3] == 'L') || + (fileExtension[1] == 'k' && fileExtension[2] == 'm' && fileExtension[3] == 'l') )) { _tcscpy(szEmuDirectory, lpFileName); TCHAR * filename = _tcsrchr(szEmuDirectory, _T('/'));