Jump to content

Recommended Posts

  • Administrators
Posted

That means we have to review code where a zero-size variable e.g. Binary('') may be passed or result in a buffer of size zero then adjust things with new error codes. Just WinAPI[Ex] is a lot!

Can you give some examples?  I don't know any winapi that when expecting a string wouldn't expecting a string pointer that just points to a memory location than in turn contains a single 0 char.  The struct you are asking about can't exist

This won't even compile:

struct
{
    char new[0];
} test;

So no winapi would ever be able to handle it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...