Skip to content

Commit

Permalink
0.6 re-release
Browse files Browse the repository at this point in the history
  • Loading branch information
makuke1234 committed Jan 25, 2022
1 parent b9df9fb commit 93571db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ The x86 (32-bit) Windows binaries can be downloaded [here](https://github.com/ma
* Revamp tab system, everything rendered on the tab page itself
* Improved the look n' feel
* Fix individual file compiling/linking
* Fix bug, not possible to open PDF's with program arguments

* 0.5
* Fix bug, when closing current tab, the next tab doesn't render
Expand Down
6 changes: 4 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE, LPWSTR cmdLine, int nCmdShow)
int argc;
auto argv{ pdfv::getArgs(cmdLine, argc) };

DEBUGPRINT("argc: %d, argv: %p", argc, static_cast<void *>(argv.get()));

wchar_t fname[MAX_PATH]{};
if (argv != nullptr && argc > 1)
if (argv != nullptr && argc > 0)
{
::GetFullPathNameW(argv.get()[1], MAX_PATH, fname, nullptr);
::GetFullPathNameW(argv.get()[0], MAX_PATH, fname, nullptr);
}

pdfv::OtherWindow otherWnd{ fname };
Expand Down
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ pdfv::MainWindow::~MainWindow() noexcept

[[nodiscard]] bool pdfv::MainWindow::run(const wchar_t * fname, int nCmdShow) noexcept
{
DEBUGPRINT("pdfv::MainWindow::run(%p, %d)\n", static_cast<const void *>(fname), nCmdShow);
DEBUGPRINT("pdfv::MainWindow::run(%p, %s, %d)\n", static_cast<const void *>(fname), fname, nCmdShow);
this->m_hwnd = ::CreateWindowExW(
0,
APP_CLASSNAME,
Expand Down

0 comments on commit 93571db

Please sign in to comment.