From 10cd4cea80a883c3e89403e0657c0b037f80ce30 Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Tue, 3 Dec 2019 13:39:17 -0500 Subject: [PATCH] Small code cleanup. --- .gitlab-ci.yml | 4 ++-- steamclient_loader/ColdClientLoader.cpp | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3ce40947..43c046c3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,7 +56,7 @@ build_steamos: build_windows: stage: build - image: fedora + image: fedora:30 script: - dnf -y install wine wget p7zip sed dos2unix @@ -107,7 +107,7 @@ build_cmake_linux: build_cmake_windows: stage: build - image: fedora + image: fedora:30 before_script: - dnf update -y diff --git a/steamclient_loader/ColdClientLoader.cpp b/steamclient_loader/ColdClientLoader.cpp index a43363ba..9ddf8d79 100644 --- a/steamclient_loader/ColdClientLoader.cpp +++ b/steamclient_loader/ColdClientLoader.cpp @@ -100,11 +100,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance ExitProcess(NULL); } - if (ExeFile[0] != NULL && CreateProcessA(ExeFile, ExeCommandLine, NULL, NULL, TRUE, CREATE_SUSPENDED, NULL, ExeRunDir, &info, &processInfo)) - { - - } - else + if (!ExeFile[0] || !CreateProcessA(ExeFile, ExeCommandLine, NULL, NULL, TRUE, CREATE_SUSPENDED, NULL, ExeRunDir, &info, &processInfo)) { MessageBoxA(NULL, "Unable to load the requested EXE file.", "ColdClientLoader", MB_ICONERROR); ExitProcess(NULL);