retapped
This commit is contained in:
parent
c373de1571
commit
d185b0e855
2 changed files with 2 additions and 1 deletions
|
@ -169,6 +169,7 @@ int main(int argc, char** argv) {
|
|||
auto capture = hazelnut::CreateFramebufferCapture(hazelnut::GuessBestCaptureInterface());
|
||||
if (!capture) {
|
||||
printf("Failed to create a capture interface\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("Successfully created a framebuffer capture interface\n");
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace hazelnut {
|
|||
}
|
||||
|
||||
// Initalize capture.
|
||||
if(pCapture->Initialize())
|
||||
if(!pCapture->Initialize())
|
||||
return nullptr;
|
||||
|
||||
return std::unique_ptr<IFramebufferCapture>(pCapture);
|
||||
|
|
Loading…
Reference in a new issue