if((fLicense = fopen(szBuf, "r+b")) != NULL)
if((fLicense = fopen(szBuf, "rb")) != NULL)
LRESULT CALLBACK DlgProcLicense(HWND hDlg, UINT msg, WPARAM wParam, LONG lParam){  char            szBuf[MAX_BUF];  LPSTR           szLicenseFilenameBuf = NULL;  WIN32_FIND_DATA wfdFindFileData;  DWORD           dwFileSize;  DWORD           dwBytesRead;  HANDLE          hFLicense;  FILE            *fLicense;  RECT            rDlg;  switch(msg)  {    case WM_INITDIALOG:      SetWindowText(hDlg, diLicense.szTitle);      SetDlgItemText(hDlg, IDC_MESSAGE0, diLicense.szMessage0);      SetDlgItemText(hDlg, IDC_MESSAGE1, diLicense.szMessage1);      lstrcpy(szBuf, szSetupDir);      lstrcat(szBuf, "\\");      lstrcat(szBuf, diLicense.szLicenseFilename);      if((hFLicense = FindFirstFile(szBuf, &wfdFindFileData)) != INVALID_HANDLE_VALUE)      {        dwFileSize = (wfdFindFileData.nFileSizeHigh * MAXDWORD) + wfdFindFileData.nFileSizeLow + 1;        FindClose(hFLicense);        if((szLicenseFilenameBuf = NS_GlobalAlloc(dwFileSize)) != NULL)        {          if((fLicense = fopen(szBuf, "r+b")) != NULL)          {            dwBytesRead = fread(szLicenseFilenameBuf, sizeof(char), dwFileSize, fLicense);            fclose(fLicense);            SetDlgItemText(hDlg, IDC_EDIT_LICENSE, szLicenseFilenameBuf);          }          FreeMemory(&szLicenseFilenameBuf);        }      }      if(GetClientRect(hDlg, &rDlg))        SetWindowPos(hDlg, HWND_TOP, (dwScreenX/2)-(rDlg.right/2), (dwScreenY/2)-(rDlg.bottom/2), 0, 0, SWP_NOSIZE);      break;    case WM_COMMAND:      switch(LOWORD(wParam))      {        case IDWIZNEXT:          DestroyWindow(hDlg);          PostMessage(hWndMain, WM_COMMAND, IDWIZNEXT, 0);          break;        case IDWIZBACK:          DestroyWindow(hDlg);          PostMessage(hWndMain, WM_COMMAND, IDWIZBACK, 0);          break;        case IDCANCEL:          AskCancelDlg(hDlg);          break;        default:          break;      }      break;  }  return(0);}