News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Maybe src/sdk/filemanager.cpp (revision 12273)

Started by omlk, December 27, 2020, 12:01:21 AM

Previous topic - Next topic

omlk

+++ src/sdk/filemanager.cpp    (revision 12273)
+        if (!data && len > 0)
+            return false;
+        return file.Write(data, len) == len;
correct:
+        if (!data || len <= 0)
+            return false;
+        return file.Write(data, len) == len;

Commaster


stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]


oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]