rollback
This commit is contained in:
parent
b2f4f8c439
commit
bf1eb51a6f
|
@ -291,11 +291,6 @@ _FX int Gui_FixTitleW(HWND hWnd, WCHAR *lpWindowTitle, int len)
|
||||||
{
|
{
|
||||||
if (len >= (int)Gui_TitleSuffixW_len * 2 &&
|
if (len >= (int)Gui_TitleSuffixW_len * 2 &&
|
||||||
Gui_ShouldCreateTitle(hWnd)) {
|
Gui_ShouldCreateTitle(hWnd)) {
|
||||||
if (SbieApi_QueryConfBool(NULL, "NoTitle", FALSE)) {
|
|
||||||
lpWindowTitle[0] = '\0';
|
|
||||||
len = 0;
|
|
||||||
return len;
|
|
||||||
}
|
|
||||||
if (wmemcmp(lpWindowTitle, &Gui_TitleSuffixW[1], 3) == 0) {
|
if (wmemcmp(lpWindowTitle, &Gui_TitleSuffixW[1], 3) == 0) {
|
||||||
len -= 4;
|
len -= 4;
|
||||||
wmemmove(lpWindowTitle, lpWindowTitle + 4, len);
|
wmemmove(lpWindowTitle, lpWindowTitle + 4, len);
|
||||||
|
@ -330,11 +325,6 @@ _FX int Gui_FixTitleA(HWND hWnd, UCHAR *lpWindowTitle, int len)
|
||||||
{
|
{
|
||||||
if (len >= (int)Gui_TitleSuffixA_len * 2 &&
|
if (len >= (int)Gui_TitleSuffixA_len * 2 &&
|
||||||
Gui_ShouldCreateTitle(hWnd)) {
|
Gui_ShouldCreateTitle(hWnd)) {
|
||||||
if (SbieApi_QueryConfBool(NULL, "NoTitle", FALSE)) {
|
|
||||||
lpWindowTitle[0] = '\0';
|
|
||||||
len = 0;
|
|
||||||
return len;
|
|
||||||
}
|
|
||||||
if (memcmp(lpWindowTitle, &Gui_TitleSuffixA[1], 3) == 0) {
|
if (memcmp(lpWindowTitle, &Gui_TitleSuffixA[1], 3) == 0) {
|
||||||
len -= 4;
|
len -= 4;
|
||||||
memmove(lpWindowTitle, lpWindowTitle + 4, len);
|
memmove(lpWindowTitle, lpWindowTitle + 4, len);
|
||||||
|
|
Loading…
Reference in New Issue