Skip to content

Commit bfa3dc8

Browse files
author
opencode
committed
Fix 3 build errors: include UpdateThread.h in Database.h, fix RCriticalSection.h path, fix RString += TCHAR
1 parent 262d724 commit bfa3dc8

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

MovieExplorer/Database.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
struct SeriesDedup;
3+
#include "UpdateThread.h"
44

55
// NOTE: The ID string of the movie contains the status
66
// "" : movie is being updated

MovieExplorer/ParseFileName.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,15 @@ void ParseFileName(RString_ strFileName, RString &strTitle, RString &strYear, IN
6868
bool bLeftSpace = (i == 0 || strTitle[i - 1] == _T(' '));
6969
bool bRightSpace = (i + 1 >= strTitle.GetLength() || strTitle[i + 1] == _T(' '));
7070
if (bLeftSpace || bRightSpace)
71-
strResult += _T(' ');
71+
strResult += _T(" ");
7272
else
73-
strResult += _T('-');
73+
strResult += _T("-");
7474
}
7575
else
76-
strResult += strTitle[i];
76+
{
77+
TCHAR sz[2] = { strTitle[i], 0 };
78+
strResult += sz;
79+
}
7780
}
7881
strTitle = strResult;
7982
}

MovieExplorer/UpdateThread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
#include <map>
4-
#include "RCriticalSection.h"
4+
#include "..\RClasses\RCriticalSection.h"
55

66
struct SeriesSeasonData
77
{

0 commit comments

Comments
 (0)